-
- Downloads
The items in an environment heap directory are stored in a list.
Previously, new items were appended to this list. Since the end of the list is not stored this was an O(n) procedure. This patch changes the behavior such that new items are now inserted before the first item. Hence insertion is now O(1), which is very important to be able to read very large grids, because boundary segments are stored in the environment tree. Before inserting a new item the environment tree would also check whether an item with the same name was already present. This was also an O(N) algorithm. This check is now enabled only when 'Debug' is set. [[Imported from SVN: r8359]]
Please register or sign in to comment