diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 17:04:30 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-06-30 20:01:12 +0800 |
commit | 61ca780f3ba21ef1e62aab545160de12cbbf45bf (patch) | |
tree | 92345071d9db2a938e64eef4eb929e0f895e337a /rpc/shared | |
parent | 9226369b5daf8c1bf738369cd838963a5d58362d (diff) | |
download | dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.tar dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.tar.gz dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.tar.bz2 dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.tar.lz dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.tar.xz dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.tar.zst dexon-61ca780f3ba21ef1e62aab545160de12cbbf45bf.zip |
core: reduce CPU load by reducing calls to checkQueue
* Reduced maxQueue count
* Added proper deletion past maxQueue limit
* Added cheap stats method to txpool
queueCheck was called for **every** transaction instead of:
1. add all txs
2. check queue
previously
1. add txs[i]
2. check queue
3. if i < len(txs) goto 1.
Diffstat (limited to 'rpc/shared')
0 files changed, 0 insertions, 0 deletions