Page MenuHomeVyOS Platform

Improve runtime from Python numeric validator
Closed, ResolvedPublicFEATURE REQUEST


$ time for i in {1..1000}; do /usr/libexec/vyos/validators/numeric --range 1-9999 666; done
real    0m56.933s
user    0m48.045s
sys     0m9.064s
$ time for i in {1..1000}; do /usr/libexec/vyos/validators/numeric --range 1-9999 666; done
real    0m44.552s
user    0m37.760s
sys     0m6.989s

This is a performance improvement of 21%

Running in an ESXi VM with Quad Intel(R) Xeon(R) CPU E5-2630L v3 @ 1.80GHz


Difficulty level
Easy (less than an hour)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Event Timeline

c-po created this task.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Version from - to 1.3-rolling-202004300117.
c-po added subscribers: thomas-mangin, dmbaturin.
erkin set Issue type to Internal change (not visible to end users).Aug 30 2021, 6:23 AM
erkin removed a subscriber: Active contributors.