good morning!!!!

Skip to content
Snippets Groups Projects
Select Git revision
  • 57a3fab8a75eeb9c2f4fab770b73b51b9fe672c5
  • master default protected
  • v0.2.16-candidate
  • shivam/rpcAddBorTx
  • default-cli-config
  • shivam/minerRecommitFix
  • vcastellm/pos-296-bump-go-version-in-bor-and-heimdall
  • shivam/ethstats-backend-fix
  • v0.2.16-beta1-candidate
  • v0.2.15-beta3-candidate
  • shivam/newCli-IPC
  • v0.3.0-dev
  • checkpoint-whitelist-master
  • shivam/codecov
  • jdkanani/fix-typo-log
  • shivam/hardcoded-spans-v0.2.14
  • shivam/hardcoded-spans
  • shivam/fast-state-sync
  • shivam/fast-state-sync-master
  • gethv1.10.15-merge
  • fix-txpool-2
  • v0.2.14-tmp-span-hotfix
  • v0.2.15-beta2
  • v0.2.15-beta1
  • v0.3.0-beta3
  • v0.3.0-beta2
  • v0.3.0-beta1
  • v0.2.14
  • v0.2.13
  • v0.2.13-beta2
  • v0.2.13-beta1
  • v0.2.12
  • v0.2.12-beta3
  • v0.2.12-beta1
  • v0.2.12-beta2
  • v0.2.11
  • v0.2.10
  • v0.2.10-beta2
  • v0.2.9
  • v0.2.9-beta1
  • v0.2.8
41 results

rlp

  • Clone with SSH
  • Clone with HTTPS
  • Forked from github / maticnetwork / bor
    549 commits behind the upstream repository.
    user avatar
    Felix Lange authored and GitHub committed
    As per benchmark results below, these changes speed up encoding/decoding of
    consensus objects a bit.
    
        name                             old time/op    new time/op    delta
        EncodeRLP/legacy-header-8           384ns ± 1%     331ns ± 3%  -13.83%  (p=0.000 n=7+8)
        EncodeRLP/london-header-8           411ns ± 1%     359ns ± 2%  -12.53%  (p=0.000 n=8+8)
        EncodeRLP/receipt-for-storage-8     251ns ± 0%     239ns ± 0%   -4.97%  (p=0.000 n=8+8)
        EncodeRLP/receipt-full-8            319ns ± 0%     300ns ± 0%   -5.89%  (p=0.000 n=8+7)
        EncodeRLP/legacy-transaction-8      389ns ± 1%     387ns ± 1%     ~     (p=0.099 n=8+8)
        EncodeRLP/access-transaction-8      607ns ± 0%     581ns ± 0%   -4.26%  (p=0.000 n=8+8)
        EncodeRLP/1559-transaction-8        627ns ± 0%     606ns ± 1%   -3.44%  (p=0.000 n=8+8)
        DecodeRLP/legacy-header-8           831ns ± 1%     813ns ± 1%   -2.20%  (p=0.000 n=8+8)
        DecodeRLP/london-header-8           824ns ± 0%     804ns ± 1%   -2.44%  (p=0.000 n=8+7)
    
    * rlp: pass length to byteArrayBytes
    
    This makes it possible to inline byteArrayBytes. For arrays, the length is known
    at encoder construction time, so the call to v.Len() can be avoided.
    
    * rlp: avoid IsNil for pointer encoding
    
    It's actually cheaper to use Elem first, because it performs less checks
    on the value. If the pointer was nil, the result of Elem is 'invalid'.
    
    * rlp: minor optimizations for slice/array encoding
    
    For empty slices/arrays, we can avoid storing a list header entry in the
    encoder buffer. Also avoid doing the tail check at encoding time because
    it is already known at encoder construction time.
    32c576bd
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.