update guess

This commit is contained in:
Folkert 2022-04-26 20:32:11 +02:00
parent d690d3f325
commit 9cfca53b0d
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C

View File

@ -537,8 +537,8 @@ pub struct IdentIds {
impl IdentIds {
pub fn with_capacity(capacity: usize) -> Self {
Self {
// guess: the average symbol length is 3
buffer: Vec::with_capacity(3 * capacity),
// guess: the average symbol length is 5
buffer: Vec::with_capacity(5 * capacity),
lengths: Vec::with_capacity(capacity),
offsets: Vec::with_capacity(capacity),