graydon/rust — Issue #1302: Disable locking in memory_region when RUSTRT_TRACK_ALLOCATIONS=0
Author: brson
Created: 2011-12-14 20:00:24+00:00
State: open
Labels: perf, rt, unassigned

The exchange heap uses a lock around every malloc and free, i.e. every vector and string acquires at least two locks during its lifetime. It looks like when we are not tracking allocations (now the default) there should be no need for a lock here.