[VM/globals] Is there any way to actually avoid them altogether? #639
Labels
benchmark
Benchmarks and optimizations
enhancement
New feature or request
open discussion
Open discussion about features/ideas/suggestions
stale
todo
Automatically generated issues from TODOs in the code
vm
Issues related to the Virtual Machine implementation
[VM/globals] Is there any way to actually avoid them altogether?
Having all these global variables is practical, but it actually causes problems when we end up wanting to work with multiple threads. An idea would be to add them as fields in a VM object, and pass this object around. But it would still need to be properly benchmark as it would - undoubtedly - add some serious overhead.
arturo/src/vm/globals.nim
Line 21 in ce734e7
658ca7972fbf6d3830966a03cc9d6c7d9e3ea816
The text was updated successfully, but these errors were encountered: