v.table: minimize re-allocations on << to table.types
parent
2516c07614
commit
467dce6be6
|
@ -86,7 +86,9 @@ mut:
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new_table() &Table {
|
pub fn new_table() &Table {
|
||||||
mut t := &Table{}
|
mut t := &Table{
|
||||||
|
types: []TypeSymbol{cap: 64000}
|
||||||
|
}
|
||||||
t.register_builtin_type_symbols()
|
t.register_builtin_type_symbols()
|
||||||
t.is_fmt = true
|
t.is_fmt = true
|
||||||
return t
|
return t
|
||||||
|
|
Loading…
Reference in New Issue