mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +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;
|
||||
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user