Skip to content

@with_signature: Add `batch` option which enables multithreading of for loops using `Polyester.jl`

Florian Atteneder requested to merge fa/polyester-2 into main

Usage:

@with_signature [batch=true] myfunction(eq::SomeEquation)
   @accepts ...
   # compute goes here
   @returns ...
end

I did some minimal profiling. There is a noticeable speed-up, but I did not measure how effective it is. For the time being, I am happy when it just runs a little faster.

Merge request reports