llvm-project
ad8bf5cb - [lldb][NFC] Use DenseMap for ISAToDescriptorMap in ObjCLanguageRuntime (#197443)

Commit
24 days ago
[lldb][NFC] Use DenseMap for ISAToDescriptorMap in ObjCLanguageRuntime (#197443) This datastruct maps addr_t's to shared_pointers, which is a good case for a DenseMap. The tree allocation functions were showing up in Instrument traces when evaluating frame variable commands. In a benchmark evaluating `v self` in a SwiftUI object, this brought down the number of CPU cycles from 578M to 487M. (release, no assertions)
Parents
Loading