Skip to content

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

Open
stan-dev/stan
#3188
@WardBrian

Description

@WardBrian

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions