Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance: generics support #18

Open
mathisdrn opened this issue Aug 25, 2023 · 0 comments
Open

performance: generics support #18

mathisdrn opened this issue Aug 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mathisdrn
Copy link
Contributor

  1. Define Type generic : numeric, text, bool, undefined (being nil value of string).
  2. Load lines of jsonlines till colType is known for every columns, if a colType is undefined : log.warn() + load value as []undefined
  3. Load lines and append to a list of said type.
  4. Use []T throughout construction of MainMetric()
  5. 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
@mathisdrn mathisdrn added the enhancement New feature or request label Aug 25, 2023
@mathisdrn mathisdrn self-assigned this Aug 25, 2023
@mathisdrn mathisdrn changed the title generics support performance: generics support Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant