validator
validator copied to clipboard
performance: min, max validators have to constantly parse param
- [x] I have looked at the documentation here first?
- [x] I have looked at the examples provided that may showcase my question here?
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
Currently, min, max and probably other tags are required to constantly parse the tag param strconv.ParseInt(param, 0, 64).
This incurrs a considerable cost and seems unnecessary since tag params do not change over time.
Isn't there a way to cache this value on tag parsing?