map vs append
- Posted by euphoric (admin) Apr 18, 2012
- 1227 views
I just have to report, if you aren't using maps, you're probably missing out on a ton of speed.
I have a program that loads the contents of over 4600 files and creates a cache file of their contents. Before, this was taking upwards of 30 seconds. Not a big deal in the whole scheme of things, but idle fingers cost money.
After, now using maps instead of sequences, it takes less than 2 seconds to complete.
Maps FTW!