Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 16582789c31780d4d5a1b282c2dc6a52aedf41b8
      
https://github.com/btcsuite/btcd/commit/16582789c31780d4d5a1b282c2dc6a52aedf41b8
  Author: Dave Collins <[email protected]>
  Date:   2016-02-03 (Wed, 03 Feb 2016)

  Changed paths:
    M rpcserver.go

  Log Message:
  -----------
  rpcserver: Optimize filteraddr code.

This optimizes the filter address handling code in the RPC server
handleSearchRawTransasctions path in a few ways:

- Only normalize the filter addresses provided in the command once
  rather than for every transaction being returned
- Reset the passes filter flag just before it's used
- Use a local for the encoded address to avoid the bounds checking
  overhead of accessing it from the slice
- Avoiding subsequent map lookups once the filter has already passed

Also, while here, modify a few of the related comments to match code
style and consistency.


Reply via email to