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

Too much space for stack #1

Open
sebawild opened this issue Oct 10, 2022 · 0 comments
Open

Too much space for stack #1

sebawild opened this issue Oct 10, 2022 · 0 comments

Comments

@sebawild
Copy link

Unlikely to be a big performance issue, but the stack space seems to be $n$, whereas $\log_2(n)+c$ is enough (for a small $c$ I don't know from the top of my head, but $c =4$ should do.)

let mut runs: Vec<Run> = Vec::with_capacity(capacity(n));

@sebawild sebawild changed the title To much space for stack Too much space for stack Oct 10, 2022
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