-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use proper String unsafeUninitializedCapacity initializer. (#263)
Motivation: A while ago we shimmed out the String unsafeUninitializedCapacity initializer because while it was on the road to being implemented, it hadn't actually been implemented. Now it has! On Apple platforms, the initializer is guarded behind an availability guard. We need to add that guard here. This means we need to keep hold of the backport for a good long time, until we raise our minimum Apple platform support to a new enough version. Happily, Linux on 5.3 should just see a net win here. Modifications: - Updated to enable us to use the proper initializer. Result: Fewer allocations when screwing around with HPACK.
- Loading branch information
Showing
2 changed files
with
37 additions
and
18 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
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