-
-
Notifications
You must be signed in to change notification settings - Fork 463
Fix Memory Budget Exceeded #778
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
thank you!
Beta Was this translation helpful? Give feedback.