mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
using glob.glob is way to costly, use os.listdir to increase performances. Test with timeit show the following for 10k loop: time_glob executed in 39.16788899600215 seconds time_listdir executed in 5.625843115005409 seconds Signed-off-by: Julien Fortin <jfortin@nvidia.com>