performance: generics support
mathisdrn opened this issue · comments
Mathis Derenne commented
- Define Type generic : numeric, text, bool, undefined (being nil value of string).
- Load lines of jsonlines till colType is known for every columns, if a colType is undefined : log.warn() + load value as []undefined
- Load lines and append to a list of said type.
- Use []T throughout construction of MainMetric()
- Use []numericT, []textT, []boolT as type signature input of SetTypeMetric()
Scope of impact :
- performance gain : []interface{} is slow and type assertion v.(type) is used in a lot of functions. Generics will remove this need.
- typed data : less error