good morning!!!!

Skip to content
Snippets Groups Projects
  1. Aug 25, 2021
    • Felix Lange's avatar
      rlp: minor optimizations for slice/array encoding (#23467) · 32c576bd
      Felix Lange authored
      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
    • Felix Lange's avatar
      all: add go:build lines (#23468) · 8a134014
      Felix Lange authored
      Generated by go1.17 fmt ./...
      8a134014
    • Guillaume Ballet's avatar
    • Felix Lange's avatar
      Dockerfile: upgrade to Go 1.17 (#23465) · d1621422
      Felix Lange authored
      d1621422
    • Martin Holst Swende's avatar
    • Martin Holst Swende's avatar
      cmd/evm: add difficulty calculation to t8n tool (#23353) · 84c51bc5
      Martin Holst Swende authored
      This PR adds functionality to the evm t8n to calculate ethash difficulty. If the caller does not provide a currentDifficulty, but instead provides the parentTimestamp (well, semi-optional, will default to 0 if not given), and parentDifficulty, we can calculate it for him.
      
      The caller can also provide a parentUncleHash. In most, but not all cases, the parent uncle hash also affects the formula. If no such hash is provided (or, if the empty all-zero hash is provided), it's assumed that there were no uncles.
      84c51bc5
    • Felix Lange's avatar
      efee8537
    • Felix Lange's avatar
      build: upgrade to golangci-lint v1.42.0 (#23461) · 45f34430
      Felix Lange authored
      The new linter version is built with go 1.17 and thus includes the go vet
      check for mismatched +build and go:build lines.
      
      Fortunately, no new warnings are reported with this update.
      45f34430
    • Gary Rong's avatar
      les: fix data races in tests (#23457) · 83ad92c4
      Gary Rong authored
      83ad92c4
  2. Aug 24, 2021
  3. Aug 23, 2021
  4. Aug 20, 2021
  5. Aug 18, 2021
  6. Aug 17, 2021
  7. Aug 13, 2021
Loading