HigherOrderCO / HVM

A massively parallel, optimal functional runtime in Rust
https://higherorderco.com
Apache License 2.0
10.52k stars 400 forks source link

Dynamic number of threads using HVM_NUM_THREADS. #358

Open khatharsis42 opened 5 months ago

khatharsis42 commented 5 months ago

I changed a bit of src/hvm.c to allow the user to dynamically change the number of threads when running. This is especially useful right now on computers that have a lot of threads, since you might not want to use all of them. Related to https://github.com/HigherOrderCO/HVM/issues/324