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 bubble-sort where appropriate #15

Open
uablrek opened this issue Mar 21, 2023 · 0 comments
Open

Use bubble-sort where appropriate #15

uablrek opened this issue Mar 21, 2023 · 0 comments

Comments

@uablrek
Copy link
Contributor

uablrek commented Mar 21, 2023

The flow array is sorted, except for the last item. So a (usually super-bad) bubble-sort may be better here;

qsort(set->flows, set->count, sizeof(struct Flow*), cmpFlows);

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

No branches or pull requests

1 participant