Skip to content

perf: precompute sin/cos values before HLSCM face assembly loop #66

@csparker247

Description

@csparker247

In HierarchicalLSCM::solveLSCMLevel, the face assembly loop calls std::sin and std::cos per edge on each face. These are computed inside the loop body rather than precomputed into a flat array before the loop. Precomputing would allow the compiler to vectorize the loop (sin/cos calls prevent auto-vectorization) and reduces redundant transcendental evaluations when an edge's angle appears in multiple adjacent faces.

Identified during code review of PR #44 (low priority).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions