Add todos for container hashmap

This commit is contained in:
Eric NGUYEN 2022-10-10 10:49:21 +02:00
parent 86c34b112e
commit 1f2809193f

View file

@ -8,6 +8,10 @@ export interface IHistoryState {
/** Reference to the main container */ /** Reference to the main container */
mainContainer: IContainerModel mainContainer: IContainerModel
// TODO: Add hashmap<string, IContainerModel> 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 */ /** Id of the selected container */
selectedContainerId: string selectedContainerId: string