Re: Two-dimensional map
- Posted by SnakeCharmer Jan 31, 2013
- 1260 views
Thanks, I started understanding at last. However it is too flexible and superfluous in my situation. I attentively read about an nested puts and gets and understood that it is equivalent to my second way. What way is more effective? What is better - nested maps (about 150x150 entries) or one big map (about 20000 entries)? How to optimize the map if it is known in advance that it never will exceed a certain size and its elements will never be removed or change.
I know about "new(THRESHOLD)". May be, it is better do:
public constant THRESHOLD = 150 map XXX = new(THRESHOLD) -- for every map