Use uint256.Int rather than common.Hash for storage values to reduce memory...
Use uint256.Int rather than common.Hash for storage values to reduce memory allocation in opSload & opSstore (#575) * Produce less garbage in GetState * Still playing with mem allocation in GetCommittedState * Pass key by pointer in GetState as well * linter * Avoid a memory allocation in opSload * Use uint256.Int rather than common.Hash for storage values to reduce memory allocation in opSload & opSstore * linter * linters * small clean up
Showing
- accounts/abi/bind/backends/simulated.go 4 additions, 2 deletionsaccounts/abi/bind/backends/simulated.go
- core/blockchain_test.go 23 additions, 22 deletionscore/blockchain_test.go
- core/genesis.go 6 additions, 3 deletionscore/genesis.go
- core/state/change_set_writer.go 4 additions, 6 deletionscore/state/change_set_writer.go
- core/state/database.go 8 additions, 6 deletionscore/state/database.go
- core/state/database_test.go 22 additions, 18 deletionscore/state/database_test.go
- core/state/db_state_writer.go 4 additions, 3 deletionscore/state/db_state_writer.go
- core/state/history_test.go 32 additions, 30 deletionscore/state/history_test.go
- core/state/intra_block_state.go 7 additions, 5 deletionscore/state/intra_block_state.go
- core/state/intra_block_state_test.go 20 additions, 10 deletionscore/state/intra_block_state_test.go
- core/state/journal.go 6 additions, 3 deletionscore/state/journal.go
- core/state/plain_state_writer.go 4 additions, 3 deletionscore/state/plain_state_writer.go
- core/state/readonly.go 9 additions, 6 deletionscore/state/readonly.go
- core/state/state_object.go 12 additions, 10 deletionscore/state/state_object.go
- core/state/state_test.go 14 additions, 13 deletionscore/state/state_test.go
- core/state/stateless.go 4 additions, 3 deletionscore/state/stateless.go
- core/state/util.go 0 additions, 7 deletionscore/state/util.go
- core/vm/evmc.go 17 additions, 18 deletionscore/vm/evmc.go
- core/vm/gas_table.go 26 additions, 26 deletionscore/vm/gas_table.go
- core/vm/gas_table_test.go 3 additions, 1 deletioncore/vm/gas_table_test.go
Loading
Please register or sign in to comment