FastGetWork optimization #565

pull luke-jr wants to merge 1 commits into bitcoin:master from luke-jr:optimize_FastGetWork changing 1 files +123 −32
  1. luke-jr commented at 8:55 PM on October 4, 2011: member

    Detect typical 'getwork' calls and accelerate them. Bypass the JSON request parser, and the JSON reply builder.

    This is split out of JoelKatz's 4diff patch. It needs testing.

  2. gavinandresen commented at 2:48 PM on October 5, 2011: contributor

    How much faster?

  3. ghost assigned alexwaters on Oct 20, 2011
  4. luke-jr commented at 10:50 PM on December 24, 2011: member

    Testing with 100 threads of 10,000 getworks each... master: 11m41s (1426/s) master + optimize_FastGetWork: 7m1s (2375/s; 67%) master + threaded_rpc: 8m56s (1869/s; 31%) master + threaded_rpc + rpc_keepalive: 8m14s (2024/s; 42%) master + threaded_rpc + rpc_keepalive + optimize_FastGetWork: 5m41s (2932/s; 105%) master + threaded_rpc + rpc_keepalive + optimize_FastGetWork + optimize_ToHex: 5m32s (3012/s; 111%)

    Note that benchmarking this volume of connections (at least without rpc_keepalive) requires tweaking kernel parameters so you don't run out of local ports.

  5. Detect typical 'getwork' calls and accelerate them. Bypass the JSON request parser, and the JSON reply builder. 31af86e045
  6. jgarzik commented at 9:05 PM on May 8, 2012: contributor

    "detect typical getwork" is too much special casing

  7. jgarzik closed this on May 8, 2012

  8. ptschip referenced this in commit 76fd9a67db on May 12, 2017
  9. kallewoof referenced this in commit 6fa39762c3 on Oct 4, 2019
  10. laanwj referenced this in commit b586bbd558 on Nov 6, 2019
  11. laanwj referenced this in commit 97b66d34eb on Nov 7, 2019
  12. laanwj referenced this in commit e9c85bb139 on Nov 7, 2019
  13. laanwj referenced this in commit c92f7af618 on Nov 7, 2019
  14. laanwj referenced this in commit 656712fe94 on Dec 9, 2019
  15. laanwj referenced this in commit 4abd92d5c4 on Dec 12, 2019
  16. laanwj referenced this in commit 89c8fe5189 on Jan 2, 2020
  17. laanwj referenced this in commit 66480821b3 on Jan 28, 2020
  18. backpacker69 referenced this in commit 9a4d4e59a3 on Mar 28, 2021
  19. rajarshimaitra referenced this in commit 6427d048f3 on Aug 5, 2021
  20. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me