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 arrays to heap, to reduce stack usage #12250

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

Conversation

puffnfresh
Copy link
Member

I keep hitting stack issues on Windows. Let's just start by reducing the stack by quite a bit.

Motivation

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

I keep hitting stack issues on Windows. Let's just start by reducing the
stack by quite a bit.
@puffnfresh puffnfresh requested a review from edolstra as a code owner January 14, 2025 02:20
@edolstra
Copy link
Member

I'm surprised a 64 KB array (in a non-recursive function) would cause issues. The evaluator uses way more stack space than that.

Isn't there a way to increase the stack size on Windows? (cc @Ericson2314)

@kjeremy
Copy link
Contributor

kjeremy commented Jan 14, 2025

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.

3 participants