News for hackers. Stuff that matters.
Re:Writing a custom iterator in modern C++ by flqn on Monday December 21, 2020 @11:47AM (#25496623)
Code size is not always a good performance metric
Re:Writing a custom iterator in modern C++ by vardump on Monday December 21, 2020 @11:49AM (#25496653)
Nothing is a good performance metric apart from profiling. Preferably with runtime conditions (CPU load, memory bandwidth, etc.) closely mirroring production setting(s).

It's very easy to forget things like memory bandwidth, inter-core/CPU links, etc. are all limited resources. And that on real systems resources are shared.

Re:Writing a custom iterator in modern C++ by benibela on Monday December 21, 2020 @01:57PM (#25498112)
I usually profile everything with valgrind callgrind