1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-29 00:29:34 +00:00

Eliminates constructions of std::tuple for performance reasons.

Specifically: reduces 68000 construction time from 10+ seconds to more like 2.8.
This commit is contained in:
Thomas Harte 2019-04-29 22:43:15 -04:00
parent eb4233e2fd
commit 3060175ff5

View File

@ -97,9 +97,11 @@ struct Microcycle {
RegisterPair16 *value = nullptr;
bool operator ==(const Microcycle &rhs) const {
return
std::make_tuple(value, address, length, operation, value) ==
std::make_tuple(rhs.value, rhs.address, rhs.length, rhs.operation, rhs.value);
if(value != rhs.value) return false;
if(address != rhs.address) return false;
if(length != rhs.length) return false;
if(operation != rhs.operation) return false;
return true;
}
// Various inspectors.