Bowarc / crates

Collection of small crates i use in my projects
1 stars 0 forks source link

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

Open Bowarc opened 1 week ago

Bowarc commented 1 week ago

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)