3 ms·
What is an example of a simple, serial ocaml program and how you would change it to use parallelism?
by jeffdavis 6y ago
What is an example of a simple, serial ocaml program and how you would change it to use parallelism?
- vizzier 6y agoThis always depends on context if parallelizing anything actually helps with performance but my most common usage of F# (essentially Ocaml on .net) parallel features are using the .net parallel library[1]. Easy way to introduce parallelized loops into your processing if what you're doing is heavy enough to warrant them. In my particular usage this was used for data transformations that were heavy enough to warrant the parallelization overhead. [1] https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.parallel.for?view=netcore-3.1 https://docs.microsoft.com/en-us/dotnet/api/system.threading...