mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-03 03:31:14 +00:00
core/types: reduce allocs in CreateBloom (#35234)
This commit is contained in:
parent
0a47739f11
commit
b4f749af11
1 changed files with 3 additions and 3 deletions
|
|
@ -110,9 +110,9 @@ func CreateBloom(receipt *Receipt) Bloom {
|
|||
buf [6]byte
|
||||
)
|
||||
for _, log := range receipt.Logs {
|
||||
bin.AddWithBuffer(log.Address.Bytes(), &buf)
|
||||
for _, b := range log.Topics {
|
||||
bin.AddWithBuffer(b[:], &buf)
|
||||
bin.AddWithBuffer(log.Address[:], &buf)
|
||||
for k := range log.Topics {
|
||||
bin.AddWithBuffer(log.Topics[k][:], &buf)
|
||||
}
|
||||
}
|
||||
return bin
|
||||
|
|
|
|||
Loading…
Reference in a new issue