-
Notifications
You must be signed in to change notification settings - Fork 15
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
Optimizations #45
Optimizations #45
Conversation
is this ready to be merged? |
Not yet, still working on it |
maybe you should make it into a draft until it's ready |
…nnecessary I/O operations
…the memory allocation each time something is added to the string
Made the benchmark results even more accurate
Created a macro for calling `push_str` Using the macro (runtime went down from ~770000 ns to ~290000 ns)
I fear the day I'll have to merge 2.5.1 and 2.5.2 to next, since it'll definitely break this too |
I can only imagine your pain LEL |
I can’t even imagine how painful this would be |
The day of reckoning arrived, merge conflicts are here, how do we fix this pr lmao |
I will try to handle it later |
shouldn't @Enn3Developer have to handle it? since it's their fork regardless, to whoever does handle the merge conflict, make sure to not accidentally remove any 2.5.X feature |
If @Enn3Developer is available to do so yes |
Oh, mhh... I didn't think it was me that should fix all the conflicts. Fuck. |
Well you don’t have to fix everything at once we can kinda split the work. But you mostly did the optimizations so you know the code better. |
Well, I'm still working on it so we'll see |
You 2 could handle the smaller things and leave what may be 2.5.X content to me |
…ed on every platform thus it is optional)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well this sure is a ton of stuff, I hope you're sure there's no bugs
Regardless, I'll merge it
So, there are rooms for optimizations here and there, these may be small but nevertheless are optimizations.
The scope of this pr is to create a benchmarking tool, too, to have more accurate results when checking if an optimization either does work or not.