This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kernel: Increase kstd::string performance with this one simple trick!
God, I should overhaul the kstd containers. This code is terrible. Anyway, string concatenation in the kernel is now way faster because we're not stupid about it - we use an exponential reallocation strategy to amortize the cost with repeated allocations and avoid unnecessary copies when appending c-style strings.
- Loading branch information
Showing
2 changed files
with
69 additions
and
21 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