[TASK] Cache state in collapse-state-persister
The module `@typo3/backend/utility/collapse-state-persister` performs several JSON decoding tasks on the same objects that are read from the client's localStorage. To save some milliseconds, a `Map`-based cache is introduced that saves some JSON operations, depending on how many nodes are expanded. Resolves: #99794 Releases: main Change-Id: I6f659390243fc1dd156b20664185f96502267dc1 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77668 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/Sources/TypeScript/backend/utility/collapse-state-persister.ts 24 additions, 12 deletions...es/TypeScript/backend/utility/collapse-state-persister.ts
- typo3/sysext/backend/Resources/Public/JavaScript/utility/collapse-state-persister.js 1 addition, 1 deletion...ces/Public/JavaScript/utility/collapse-state-persister.js
Please register or sign in to comment