Le Tue, 11 Dec 2012 08:41:32 +0000, Mark Shannon <mark at hotpy.org> a écrit : > > > > If you have a suggested allocation pattern or other > > constructive suggestion, it would be would welcome. > It seems like a reasonable starting point. > Trying to avoid resizing the index array and the entries array at the > same time is probably a good idea. Why would you want to avoid that? If we want to allocate the dict's data as a single memory block (which saves a bit in memory consumption and also makes dict allocations faster), we need to resize both arrays at the same time. Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4