[all-commits] [llvm/llvm-project] d4e919: [libc++] Remove unnecessary container construction...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Tue Sep 29 10:14:46 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d4e91964c3a57c2768db7946a399eb96d346b2c5
https://github.com/llvm/llvm-project/commit/d4e91964c3a57c2768db7946a399eb96d346b2c5
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M libcxx/test/benchmarks/containers/associative/associative_container_benchmarks.h
Log Message:
-----------
[libc++] Remove unnecessary container constructions in setup code (#216141)
It turns out that a fair amount of the benchmark suite is spent in
unmeasured code. Amongst other things, we were constructing temporary
containers from scratch instead of assigning from an already built-up
copy, which is a lot faster.
This patch speeds up the wall time for running flat_map benchmarks by
approximately 30s (from 98s to 66s) on my machine.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list