mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.table: minimize re-allocations on << to table.types
This commit is contained in:
parent
2516c07614
commit
467dce6be6
@ -86,7 +86,9 @@ mut:
|
||||
}
|
||||
|
||||
pub fn new_table() &Table {
|
||||
mut t := &Table{}
|
||||
mut t := &Table{
|
||||
types: []TypeSymbol{cap: 64000}
|
||||
}
|
||||
t.register_builtin_type_symbols()
|
||||
t.is_fmt = true
|
||||
return t
|
||||
|
Loading…
Reference in New Issue
Block a user