News for hackers. Stuff that matters.
Re:The ups and downs of porting 50k lines of C++ to Go (2015) by tcbawo on Thursday March 14, 2019 @12:42AM (#19386576)
If you're going to compare performance of C++ maps, you may want to consider std::unordered_map, which is a hash map implementation vs std::map's red-black tree.
Re:The ups and downs of porting 50k lines of C++ to Go (2015) by adev_ on Thursday March 14, 2019 @01:04AM (#19386636)
Not even considering that unordered_map is not the fastest hash map implementation for C++. There is plenty of the flat hash map implementation (swiss tables) around that beats unordered_map by an other factor....

https://abseil.io/blog/20180927-swisstables

Re:The ups and downs of porting 50k lines of C++ to Go (2015) by shaklee3 on Thursday March 14, 2019 @12:58AM (#19386617)
Not only consider, but comparing a Go map to C++ absolutely has to do that since go is unordered. A c++ unordered can be significantly faster than ordered in many contexts.