erigon
erigon copied to clipboard
fix: avoid duplicate byte-to-string conversions in ETL buffers
Reduce allocations in appendSortableBuffer and oldestEntrySortableBuffer by converting the key from []byte to string only once per Put call and reusing the result for map lookups and updates. This keeps the existing semantics of copying keys into map[string][]byte while cutting the number of temporary string allocations in hot ETL paths.