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

Use the stock qsort implementation from libc #91

Closed
wants to merge 1 commit into from

Conversation

xiaoxiang781216
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 commented Apr 21, 2021

to save the code and stack space since the old implemenation allocate two big arrays(1KB) on the stack:
https://github.com/j256/dmalloc/pull/91/files#diff-0cb3c9f001135300e58db5f04e333f87d9e53ec01630836980a56f6789c11f6dL317

to save the code and stack space

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ifb00e71e97cf2b4045845ed4ed92c7d21f87db67
@j256
Copy link
Owner

j256 commented Apr 21, 2021

Sorry but this seems like a portability issue. Not going to take this.

@j256 j256 closed this Apr 21, 2021
@xiaoxiang781216 xiaoxiang781216 deleted the qsort branch April 22, 2021 02:45
@xiaoxiang781216
Copy link
Contributor Author

xiaoxiang781216 commented Apr 22, 2021

@j256 Ok, I move MAX_QSORT_SPLITS and MAX_QSORT_PARTITION to settings.dist, so the use can fine tune it:
#95

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.

None yet

2 participants