Skip to content
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

perf: Inline short heap strings when resizing #70

Merged
merged 1 commit into from
Mar 27, 2022
Merged

Conversation

ParkMyCar
Copy link
Owner

This PR is a followup to #65 where From<String> and From<Box<str>> became O(1). There we deferred inlining short heap strings to prevent the need to drop heap allocated memory. Here we inline short heap strings when resizing, since we need to drop the heap allocated buffer anyways.

@ParkMyCar ParkMyCar merged commit 2f52e40 into main Mar 27, 2022
@ParkMyCar ParkMyCar deleted the perf/from_string_2 branch March 27, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant