storage - tweak performance numbers

This commit is contained in:
Benjamin Pasero
2018-10-29 07:02:31 +01:00
parent 4626bc0e1b
commit b5b15c1e6d
7 changed files with 90 additions and 33 deletions

View File

@@ -53,15 +53,11 @@ bootstrapWindow.load([
function showPartsSplash(configuration) {
perf.mark('willShowPartsSplash');
// TODO@Ben remove me after a while
perf.mark('willAccessLocalStorage');
let storage = window.localStorage;
perf.mark('didAccessLocalStorage');
let data;
try {
// TODO@Ben remove me after a while
perf.mark('willReadLocalStorage');
let raw = storage.getItem('storage://global/parts-splash-data');
let raw = window.localStorage.getItem('storage://global/parts-splash-data');
perf.mark('didReadLocalStorage');
data = JSON.parse(raw);
} catch (e) {