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

Move sort_small_general to standalone function #36

Merged

Conversation

Voultapher
Copy link
Owner

This greatly improves release compile times.
Before:

Benchmark 1: cargo build --release
    Time (mean ± σ):      9.065 s ±  0.080 s    [User: 22.421 s, System: 0.309 s]
    Range (min … max):    8.998 s …  9.154 s    3 runs

After:

Benchmark 1: cargo build --release
    Time (mean ± σ):      6.594 s ±  0.043 s    [User: 20.360 s, System: 0.264 s]
    Range (min … max):    6.562 s …  6.644 s    3 runs

While avoiding significant binary-size regressions. This split-up will be necessary anyway when sharing this function with ipnsort.

This greatly improves release compile times.
Before:
Benchmark 1: cargo build --release
    Time (mean ± σ):      9.065 s ±  0.080 s    [User: 22.421 s, System: 0.309 s]
    Range (min … max):    8.998 s …  9.154 s    3 runs
After:
Benchmark 1: cargo build --release
    Time (mean ± σ):      6.594 s ±  0.043 s    [User: 20.360 s, System: 0.264 s]
    Range (min … max):    6.562 s …  6.644 s    3 runs

While avoiding significant binary-size regressions. This split-up will
be necessary anyway when sharing this function with ipnsort.
@Voultapher Voultapher requested a review from orlp February 27, 2024 17:11
@Voultapher Voultapher merged commit 248bec8 into main Feb 28, 2024
3 checks passed
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