good morning!!!!

Skip to content
Snippets Groups Projects
  1. Jun 30, 2020
    • Marius van der Wijden's avatar
      core: types: less allocations when hashing and tx handling (#21265) · ddeea1e0
      Marius van der Wijden authored
      
      * core, crypto: various allocation savings regarding tx handling
      
      * core: reduce allocs for gas price comparison
      
      This change reduces the allocations needed for comparing different transactions to each other.
      A call to `tx.GasPrice()` copies the gas price as it has to be safe against modifications and
      also needs to be threadsafe. For comparing and ordering different transactions we don't need
      these guarantees
      
      * core: added tx.GasPriceIntCmp for comparison without allocation
      
      adds a method to remove unneeded allocation in comparison to tx.gasPrice
      
      * core/types: pool legacykeccak256 objects in rlpHash
      
      rlpHash is by far the most used function in core that allocates a legacyKeccak256 object on each call.
      Since it is so widely used it makes sense to add pooling here so we relieve the GC.
      On my machine these changes result in > 100 MILLION less allocations and > 30 GB less allocated memory.
      
      * reverted some changes
      
      * reverted some changes
      
      * trie: use crypto.KeccakState instead of replicating code
      
      Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
      ddeea1e0
    • Martin Holst Swende's avatar
      cmd/evm: add state transition tool for testing (#20958) · e376d2fb
      Martin Holst Swende authored
      
      This PR implements the EVM state transition tool, which is intended
      to be the replacement for our retesteth client implementation.
      Documentation is present in the cmd/evm/README.md file.
      
      Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
      e376d2fb
    • Binacs's avatar
      cmd: abstract `getPassPhrase` functions into one (#21219) · dd91c7ce
      Binacs authored
      
      * [cmd] Abstract `getPassPhrase` functions into one.
      
      * cmd/ethkey: fix compilation failure
      
      Co-authored-by: default avatarrjl493456442 <garyrong0905@gmail.com>
      dd91c7ce
    • meowsbits's avatar
      utils: fix ineffectual miner config flags (#21271) · c13df145
      meowsbits authored
      
      Without use of global, these flags didn't actually modify
      miner configuration, since we weren't grabbing from the
      proper context scope, which should be global (vs. subcommand).
      
      Signed-off-by: default avatarmeows <b5c6@protonmail.com>
      c13df145
  2. Jun 26, 2020
  3. Jun 24, 2020
  4. Jun 23, 2020
  5. Jun 19, 2020
    • Guillaume Ballet's avatar
      common/fdlimit: build on DragonflyBSD (#21241) · 9a188c97
      Guillaume Ballet authored
      * common/fdlimit: build on DragonflyBSD
      
      * review feedback
      9a188c97
    • AusIV's avatar
      core/rawdb: fix high memory usage in freezer (#21243) · 3ebfeb09
      AusIV authored
      The ancients variable in the freezer is a list of hashes, which
      identifies all of the hashes to be frozen. The slice is being allocated
      with a capacity of `limit`, which is the number of the last block
      this batch will attempt to add to the freezer. That means we are
      allocating memory for all of the blocks in the freezer, not just
      the ones to be added.
      
      If instead we allocate `limit - f.frozen`, we will only allocate
      enough space for the blocks we're about to add to the freezer. On
      mainnet this reduces usage by about 320 MB.
      3ebfeb09
  6. Jun 18, 2020
  7. Jun 17, 2020
  8. Jun 16, 2020
  9. Jun 15, 2020
  10. Jun 11, 2020
  11. Jun 10, 2020
  12. Jun 09, 2020
  13. Jun 08, 2020
Loading