Skip to content

[optim - C binding] Use a contiguous array/flat representation for coordinates #241

@dannywillems

Description

@dannywillems

At the moment, in the C bindings, the points are represented as a struct with 3 fields. It creates 3 indirections when calling the C code. When performing many operations on the same point, the same memory page, containing the 3 coordinates, can stay in the CPU cache, which may give a possible non-negligeable performance improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformance(potential) performance improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions