|
|
|
|
|
by thesz
3725 days ago
|
|
Haskell scheduler switches at memory allocation. When your CPU intensive code does not allocate, it will not switch to another green thread. So point in the example above is absence of memory allocation. And, having decent codegenerator, Haskell could produce the code above where registers are reused for new values (effectively, mutation). |
|