Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove allocation of capturing lambdas in TransportBulkAction (#104841)
These two lambdas combined account for more than 1.5% of all allocations during indexing in the http_logs benchmark. We would expect to repeatedly see the same index over and over in a bulk request, so the small saving for hashing + lookup from computeIfAbsent is effectively irrelevant while the allocations incur a measurable cost.
- Loading branch information