Originally Posted by matsp
As to the discussion about maps and Perl hashing. As Perl is written in C, I doubt that C would be slower than Perl, given an equal implementation. I have seen mentions of a hashmap that is supposed to be better than std::map - but it takes a pretty huge table before the difference makes any noticable difference (like hundreds of thousands of entries or more - as map is O(logn), so the number of compares to search a 1000 entries is 10 - not exactly an ardeous task in a modern computer).