mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
update guess
This commit is contained in:
parent
d690d3f325
commit
9cfca53b0d
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user