introduce new blazingly fast alloc#18
Open
Sharktheone wants to merge 7 commits into
Open
Conversation
Owner
|
Wait, would this compile? Isn't box a reserved keyword? |
Author
|
Oh, true... it is. Completely forgot about that one |
Owner
|
A few issues here. You named your module The crate is |
Author
|
I'm not sure if you actually need to rename the module since modules are not conflicting with crates. It can come to some unconveniant situations inside the module itself when you want to want to use a crate with the same name as the module name, but I think it is manageable here. |
Owner
|
It doesn't compile. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
glibc malloc and free are waay, wayy to slow. They rely on syscalls. We obviously don't have time for such nonsense.
This PR introduces a malloc and free how it always should have been! The new malloc and free work by keeping track of all allocs in a global state. They are dellocated by getting the next state with the pointer as alpha.
Applications using this new malloc will have a guaranteed performance benefit of at least 420%!