HewlettPackard / lustre_exporter

Prometheus exporter for use with the Lustre parallel filesystem
Apache License 2.0
36 stars 51 forks source link

Move all number parsing to separate function #103

Closed roclark closed 7 years ago

roclark commented 7 years ago

The global initialization of the number regex parser reduces the total number of mallocs by a factor of approximately 10.

Signed-Off-By: Robert Clark robert.d.clark@hpe.com

joehandzik commented 7 years ago

Ok, LGTM, lemme know in the next five minutes if I need to hold off on this, otherwise I'm merging.

roclark commented 7 years ago

I'm good to merge, everything seemed to work as expected on my test servers.