nevalang / neva

🌊 Dataflow programming language with static types and implicit parallelism. Compiles to native code and Go
https://nevalang.org
MIT License
91 stars 7 forks source link

Reduce CPU usage #709

Open emil14 opened 4 days ago

emil14 commented 4 days ago

Add numbers example can fully utilize 2 CPU cores (180-190%). The reason might be in functions that abuse for with select. We need to experiment with runtime.Goshed() and sync.WaitGroup and check if CPU usage getting lower.