-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Avoid malloc allocations in the runtime, part 2 #23249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid malloc allocations in the runtime, part 2 #23249
Conversation
@swift-ci test |
Build failed |
…e old remangler The old remangler is only used for ObjC runtime type mangling, but not for mangling optimized function names.
Extract common code from the old and new remangler into a common base class. This lets the old remangler benefit from the changes I did recently in the new remangler.
Use SmallVector instead of std::vector and a SmallPtrSet-like implementation for the set.
…entifiers This avoids memory allocations.
d096fda
to
c6abbfa
Compare
@swift-ci test |
1 similar comment
@swift-ci test |
@swift-ci test macOS |
Build failed |
There are a lot of unnecessary changes in this patch — renaming |
That said, LGTM, thanks. |
This is a followup on #23131.
Removes even more memory allocations in the runtime. The most significant changes are:
See the commit messages for details.