From 1f2809193f791dc34dd5ace3574f1ca54febc6ea Mon Sep 17 00:00:00 2001 From: Eric NGUYEN Date: Mon, 10 Oct 2022 10:49:21 +0200 Subject: [PATCH] Add todos for container hashmap --- src/Interfaces/IHistoryState.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Interfaces/IHistoryState.ts b/src/Interfaces/IHistoryState.ts index c0d8214..3576c2a 100644 --- a/src/Interfaces/IHistoryState.ts +++ b/src/Interfaces/IHistoryState.ts @@ -8,6 +8,10 @@ export interface IHistoryState { /** Reference to the main container */ mainContainer: IContainerModel + // TODO: Add hashmap to optimize FincContainerById from worst O(n) to O(1) + // TODO: this hashmap will not be serialized, modify it in the replacer and reviver in saveload.ts + worker.js + // TODO: Update addContainers and deleteContainer to update the hashmap + /** Id of the selected container */ selectedContainerId: string