I need help determining the most efficient data structure for displaying this user interface: https://i.sstatic.net/pulZv.png
Currently, I am developing in javascript/typescript with Angular and must have the ability to add/remove/update items. Additionally, keep in mind that there will be numerous rows and columns, each containing up to 100 unique items. My current consideration for a data structure is as follows:
var data = new Map<string, Map<string, Set<Item>>>();
In this setup, rowKeyN and columnKeyN are represented by strings, and the Set contains all the items within each cell.
While this data structure may seem complex, it appears to offer the best performance capabilities in my scenario. What are your thoughts on this approach? Thank you in advance.