Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Memory Budget Exceeded #778

Answered by antonmedv
rdaniel1105 asked this question in Q&A
Discussion options

I am passing down a long list and then iterating through it to create a new array, however I am encountering the "memory budget exceeded" is there a way to fix this?

You must be logged in to vote

You're hitting the "memory budget exceeded" error because the list is too large. In expr-lang v1.17.0+, you can increase the memory limit using the vm.MemoryBudget option:

vm := vm.VM{MemoryBudget: 1e9}
vm.Run(program)

Adjust to fit your use case.

Replies: 1 comment 1 reply

Comment options

You're hitting the "memory budget exceeded" error because the list is too large. In expr-lang v1.17.0+, you can increase the memory limit using the vm.MemoryBudget option:

vm := vm.VM{MemoryBudget: 1e9}
vm.Run(program)

Adjust to fit your use case.

You must be logged in to vote
1 reply
Comment options

thank you!

Answer selected by rdaniel1105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /