Optimize: Replace QHash with std::array.
authorMilian Wolff <milian.wolff@kdab.com>
Fri, 23 Oct 2015 08:49:47 +0000 (10:49 +0200)
committerMilian Wolff <milian.wolff@kdab.com>
Fri, 23 Oct 2015 08:49:47 +0000 (10:49 +0200)
commit4771c1c9c1ea4dd13bcd51805d1eb0ee12094059
tree00b2a333c87455a3a1b14387801a4b68380ab85f
parentabd8b4ae8c5404ecabbf51064688e1fd15748c00
Optimize: Replace QHash with std::array.

We now know that chart cost data is monotonously indexed and can
thus use a plain array over a QHash. This is much quicker to index
into in Parser::handleTimeStamp, and removes a hotspot found with
perf when analyzing a big data file.
gui/chartmodel.cpp
gui/chartmodel.h
gui/parser.cpp