diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-01 14:06:12 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-01 14:06:12 +0100 |
commit | 5d4ef719b9763ce9c150b93d61e541f5bbc1bbb9 (patch) | |
tree | 3a021261fdba3e29fda6a43f4bc3bf4f69136e87 /contrib | |
parent | perf_timer: allow profiling more granular than millisecond (diff) | |
download | monero-5d4ef719b9763ce9c150b93d61e541f5bbc1bbb9.tar.xz |
core: speed up output index unique set calculation
A sort+uniq step was done for every tx in a 200 block chunk,
causing a lot of repeated scanning as the size of the offset
map got larger with every added tx. We now do the step only
once at the end of the loop.
Doing it this way potentially uses more memory, but testing
shows that it's currently only about 2% more.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions