This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Pre-allocate storage in ObjCLanguage::MethodName::GetFullNameWithoutCategory
ClosedPublic

Authored by bulbazord on May 18 2023, 3:35 PM.

Details

Summary

The size of a full ObjC MethodName can vary somewhat, but it is
computable ahead of time.

Using a reasonably sized ObjC application, this actually improves the
time it takes to initialize symbol indexes for ObjC names ever so
slightly. Additionally, I found that the variability in time also was
improved considerably.

Diff Detail

Event Timeline

bulbazord created this revision.May 18 2023, 3:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 3:35 PM
bulbazord requested review of this revision.May 18 2023, 3:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 3:35 PM
aprantl accepted this revision.May 18 2023, 3:41 PM
This revision is now accepted and ready to land.May 18 2023, 3:41 PM