Skip to content

Modified to use the emalloc instead of malloc. #174

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

Closed
wants to merge 1 commit into from

Conversation

tkyaji
Copy link

@tkyaji tkyaji commented Jul 3, 2015

Zlib's "compress" function uses the "malloc" and "free" by default.
Therefore, it was modified to use the "emalloc" and "efree".

@krakjoe
Copy link
Member

krakjoe commented Apr 4, 2016

I can't see a good reason to do this, the Zend MM is optimized specifically for PHP, there's no reason to think that it would perform any better for a totally different application, which is what zlib is.

The only bad reason to switch to using the Zend MM is to have it clean up at request shutdown, but since we have no leaks, and that's a bad reason to switch ...

I'm closing the PR, but thanks for taking the time :)

@krakjoe krakjoe closed this Apr 4, 2016
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.

2 participants