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

sort.c: copy by uintptr in swap #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

funny-falcon
Copy link

@funny-falcon funny-falcon commented Jan 5, 2023

All arrays passed to backtrace_qsort have size multiple of sizeof(void*). Lets rely on it and optimize for.

It makes sorting for large binaries 2.5-3 times faster.

all arrays passed to backtrace_qsort have size multiple of sizeof(void*).
Lets optimize for.
johnsonjh added a commit to johnsonjh/libbacktrace that referenced this pull request Feb 2, 2023
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