mirror of
https://github.com/cberner/raptorq.git
synced 2024-06-29 18:21:43 +00:00
Avoid allocating excess memory
This commit is contained in:
parent
48a9dcc2c0
commit
e08c78a800
@ -215,7 +215,7 @@ impl U32VecMap {
|
||||
pub fn with_capacity(start_key: usize, end_key: usize) -> U32VecMap {
|
||||
U32VecMap {
|
||||
offset: start_key,
|
||||
elements: vec![0; end_key],
|
||||
elements: vec![0; end_key - start_key],
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user