public Main() { _settingsStorage = new PluginJsonStorage <Settings>(); _settings = _settingsStorage.Load(); _cacheStorage = new BinaryStorage <ProgramIndexCache>(); _cache = _cacheStorage.Load(); }
public Main() { _settingsStorage = new PluginJsonStorage<Settings>(); _settings = _settingsStorage.Load(); _cacheStorage = new BinaryStorage<ProgramIndexCache>(); _cache = _cacheStorage.Load(); }
public Main() { _settingsStorage = new PluginJsonStorage <Settings>(); _settings = _settingsStorage.Load(); Stopwatch.Debug("Preload programs", () => { _cacheStorage = new BinaryStorage <ProgramIndexCache>(); _cache = _cacheStorage.Load(); _win32s = _cache.Programs; }); Log.Info($"Preload {_win32s.Length} programs from cache"); Stopwatch.Debug("Program Index", IndexPrograms); }
public Main() { _settingsStorage = new PluginJsonStorage<Settings>(); _settings = _settingsStorage.Load(); Stopwatch.Debug("Preload programs", () => { _cacheStorage = new BinaryStorage<ProgramIndexCache>(); _cache = _cacheStorage.Load(); _win32s = _cache.Programs; }); Log.Info($"Preload {_win32s.Length} programs from cache"); Stopwatch.Debug("Program Index", IndexPrograms); }
static ImageLoader() { _storage = new BinaryStorage <ImageCache>(); _cache = _storage.Load(); }
static ImageLoader() { _storage = new BinaryStorage<ImageCache>(); _cache = _storage.Load(); }