You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just benchmarked your freelist implementation, and it is remarkably fast. Sadly, it lacks a way to preallocate the memory which tanks performance early on. Could you please add the with_capacity constructor? It should be fairly trivial as far as I understand.
You'd just need to change this line to Vec::with_capacity() and you basically get ready-made with_capacity constructor.
Just benchmarked your freelist implementation, and it is remarkably fast. Sadly, it lacks a way to preallocate the memory which tanks performance early on. Could you please add the with_capacity constructor? It should be fairly trivial as far as I understand.
You'd just need to change this line to Vec::with_capacity() and you basically get ready-made with_capacity constructor.
narui/freelist/src/lib.rs
Line 42 in 2c758be
Thanks!
The text was updated successfully, but these errors were encountered: