stanc3 icon indicating copy to clipboard operation
stanc3 copied to clipboard

SoA optimization can over-promote objects used inside loops to produce slower code

Open WardBrian opened this issue 3 years ago • 0 comments

Current Behavior:

See this forum thread by @mike-lawrence which contains an example that is ~5x slower at --O1 compared to the default.

Expected Behavior:

SoA optimization should not promote things being assigned to inside of a tight for loop

WardBrian avatar Jan 23 '23 16:01 WardBrian