actuarialopensource / benchmarks

Some performance tests for actuarial applications
MIT License
14 stars 4 forks source link

A lot of type instability in the Term Bechmark for Julia #24

Closed alecloudenback closed 11 months ago

alecloudenback commented 1 year ago

Quickly looked at this.... Memoization makes it difficult to pin down, but there's a lot of runtime dispatch happening because of functions potentially returning Any

alecloudenback commented 1 year ago

Partially fixed in #25

serenity4 commented 11 months ago

I don't think there is anything concrete to address now. We can always look at type instability if we want to have another round of performance optimization, but right now performance has already been optimized quite a bit.

Feel free to reopen this if you have any concrete example in mind where type instability occurs in a way that affects performance.