3 ms·
I was writing a library. I gave the user the option to provide me with the initial preallocation size, and a good method for guessing it. When libraries deal w
by jonstewart 12y ago
I was writing a library. I gave the user the option to provide me with the initial preallocation size, and a good method for guessing it.
When libraries deal with lots of things, it's generally important to expose special handling for dealing with lots of things.
Jon