mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
perf(archive): remove unused NgRx archive stores to reduce memory usage
Archives (archiveYoung, archiveOld) were being loaded into NgRx state at startup but their selectors were never read anywhere in the codebase. All code that needs archives loads them directly from IndexedDB via ArchiveDbAdapter (StateSnapshotService, TaskArchiveService, etc). This change removes the archive store registrations from NgRx, which: - Reduces memory usage for users with large archives - Improves startup time (no longer dispatching large archive data to NgRx) - Reduces GC pressure (fewer large objects in memory) Archive functionality is unaffected - archives are still stored in IndexedDB and loaded on-demand when needed for worklog, sync, etc.
This commit is contained in:
parent
c5625317bf
commit
b2a807f7db
5 changed files with 69 additions and 9 deletions
15
angular.json
15
angular.json
|
|
@ -72,6 +72,11 @@
|
|||
"production": {
|
||||
"baseHref": "",
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "5.5mb",
|
||||
"maximumError": "6mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "20kb"
|
||||
|
|
@ -104,6 +109,11 @@
|
|||
"browser": "browser"
|
||||
},
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "5.5mb",
|
||||
"maximumError": "6mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "20kb"
|
||||
|
|
@ -133,6 +143,11 @@
|
|||
"stage": {
|
||||
"baseHref": "",
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "5.5mb",
|
||||
"maximumError": "6mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "20kb"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue