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

More convenient way to allocate new blocks without affecting performance #6

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

LessComplexity
Copy link
Member

@LessComplexity LessComplexity commented Mar 21, 2021

Modified the CPPShift::Memory::MemoryPoolManager::createMemoryBlock function to retrieve a memory pool structure (MemoryPool*) & a size, the function then assigns the block to the pool block chain for you - before it just created the block and let you do the work of chaining it together to the pool, no affect in performance (even a bit faster but negligible).

@LessComplexity LessComplexity merged commit e99ef69 into main Mar 21, 2021
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