Re: Two-dimensional map

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu