Page MenuHomeVyOS Platform

Improve runtime from Python numeric validator
Closed, ResolvedPublicFEATURE REQUEST

Description

$ 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

Details

Version
1.3-rolling-202004300117
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Internal change (not visible to end users)

Event Timeline

c-po claimed this task.
c-po edited a custom field.
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: Global Notifications.