Merge: Faster scan in the loader
authorJean Privat <jean@pryen.org>
Mon, 28 Sep 2015 14:35:33 +0000 (10:35 -0400)
committerJean Privat <jean@pryen.org>
Mon, 28 Sep 2015 14:35:33 +0000 (10:35 -0400)
commitff74c0ed260b7701ac0c60d068bf2593f57bdbbf
tree6db2943ee396d624de1fa006b505fb8eabb59a74
parent5098103a945f5ec008de26d729acd8d74702ebb9
parent9306bbbdc8c2ee5c02d90696b0e2562878245ab4
Merge: Faster scan in the loader

Some people experienced a slowdown in nitls and nitpick since the last changes in the loader.

The culprit where mostly expensive services on strings and filepaths. see #1736
This PR improves the current state of affairs by using less expensive services or rearrange them.

For `time nitls -pt ../contrib/ ../lib ../examples/`

Before:
* real 0m2.159s
* user 0m1.840s
* sys 0m0.288s

After:
* real 0m0.545s (-75%)
* user 0m0.352s (-81%)
* sys 0m0.172s

Pull-Request: #1737
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>