validator icon indicating copy to clipboard operation
validator copied to clipboard

performance: min, max validators have to constantly parse param

Open sschepens opened this issue 2 years ago • 0 comments

  • [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?

sschepens avatar Sep 13 '23 14:09 sschepens