use nPrevNodeCount instead of calling vNodes.size() twice #1413

pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:net_cpp_reuse_var changing 1 files +1 −1
  1. Diapolo commented at 11:43 AM on June 3, 2012: none

    No description provided.

  2. use nPrevNodeCount instead of calling vNodes.size() twice d4e1420665
  3. gavinandresen commented at 12:13 PM on June 3, 2012: contributor

    NACK-- the compiler is perfectly able to do this kind of micro-optimization, and the code is clearer in its original form in my opinion.

  4. Diapolo closed this on Jun 3, 2012

  5. lateminer referenced this in commit f395cfa1c8 on Jan 22, 2019
  6. lateminer referenced this in commit 4fdd3225b3 on May 6, 2020
  7. 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-15 18:16 UTC

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