good morning!!!!

Skip to content
Snippets Groups Projects
  1. Nov 20, 2020
  2. Nov 18, 2020
  3. Nov 14, 2020
  4. Nov 13, 2020
  5. Nov 12, 2020
  6. Nov 11, 2020
  7. Nov 10, 2020
  8. Nov 09, 2020
  9. Nov 05, 2020
  10. Nov 04, 2020
    • Martin Holst Swende's avatar
      core/types, rlp: optimize derivesha (#21728) · 175506e7
      Martin Holst Swende authored
      
      This PR contains a minor optimization in derivesha, by exposing the RLP
      int-encoding and making use of it to write integers directly to a
      buffer (an RLP integer is known to never require more than 9 bytes
      total). rlp.AppendUint64 might be useful in other places too.
      
      The code assumes, just as before, that the hasher (a trie) will copy the
      key internally, which it does when doing keybytesToHex(key).
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      175506e7
Loading