mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-30 07:55:01 +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:
parent
eb4233e2fd
commit
3060175ff5
@ -97,9 +97,11 @@ struct Microcycle {
|
|||||||
RegisterPair16 *value = nullptr;
|
RegisterPair16 *value = nullptr;
|
||||||
|
|
||||||
bool operator ==(const Microcycle &rhs) const {
|
bool operator ==(const Microcycle &rhs) const {
|
||||||
return
|
if(value != rhs.value) return false;
|
||||||
std::make_tuple(value, address, length, operation, value) ==
|
if(address != rhs.address) return false;
|
||||||
std::make_tuple(rhs.value, rhs.address, rhs.length, rhs.operation, rhs.value);
|
if(length != rhs.length) return false;
|
||||||
|
if(operation != rhs.operation) return false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Various inspectors.
|
// Various inspectors.
|
||||||
|
Loading…
Reference in New Issue
Block a user