Spurious allocations with @threads, when setting variables using if statements

This is probably the infamous bug of the performance penalty of closures, related to @threads creating a closure.

See: Type-instability because of @threads boxing variables

1 Like