Skip to content

Categories for AOT, JIT and Dynamic Validation #1126

Open
@sinclairzx81

Description

@sinclairzx81

Hi @moltar!

Hey, was wondering if it might be possible to perhaps group the current validators into categories in accordance with how each validator works (this to provide a bit of insight into some of the performance characteristics of each category).

Currently there is quite the divide between fast and slow and not much indication given as to what makes the faster validators fast (or what trade offs are necessary to attain that performance). Also, having a bit of extra info might bring a few insights to developers wanting to have a go at building out a few more high performance options (we could use a few more) :D

All validators generally fall into one of the following 3 categories:

  • AOT - Uses compiler codegen to produce static validation code
  • JIT - Uses runtime codegen to produce code and executes via eval()
  • Dynamic - Uses dynamic property checking

I was thinking perhaps the easiest way to achieve this (from a visual standpoint) might be to add some iconography next to each validator + a legend somewhere giving info as to what each icon means (possibly including the descriptions listed above). Color coded icons might be a good visual indicator too (a contrasting red, green and blue might work quite well)

Just putting the idea out there :)
All the best!
S

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions