Skip to content

[math] Vec2d use Rc<[T]> instead of Vec<T> #24

@Bowarc

Description

@Bowarc

this explains it really well.

Vec is used to be able to modify it's length, and for this, it stores a capacity.
On the other hand Rc<[T]> does not. (+ clones are wayy cheaper)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions