-
-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(allocator): make
String
non-drop (#8617)
Wrap `bumpalo::collections::String` in `ManuallyDrop` inside our `String` type. This has 2 advantages: 1. Perf improvement (although it's very minor, because we don't use owned `String` type much). 2. `String`s can be stored in `Allocator` if you want to (#8570 made that impossible, if `String` is `Drop`).
- Loading branch information
1 parent
01a5e5d
commit 787aaad
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters