Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Performance: Use SmallVec in rustfix #194

Closed
deeprobin opened this issue May 19, 2021 · 1 comment
Closed

Performance: Use SmallVec in rustfix #194

deeprobin opened this issue May 19, 2021 · 1 comment

Comments

@deeprobin
Copy link
Contributor

I suggest using SmallVec (smallvec crate) instead of a regular Vec to improve performance, by having a SmallVec allocate primarily on the stack and the heap is secondary.

Where this could be useful

Of course, it doesn't make sense to blindly replace something like that, but you could analyze this with benchmarks to see where a SmallVec would make sense.

Additional/useful resources

@ehuss
Copy link
Collaborator

ehuss commented Nov 22, 2023

I'm going to close as I don't think performance has been much of a concern.

@ehuss ehuss closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants