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)
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>

contrib/mnit_test/package.ini
contrib/nitcc/tests/packages.ini [moved from contrib/nitcc/tests/package.ini with 100% similarity]
examples/draw_operation.ini
lib/gen_nit.ini [new file with mode: 0644]
lib/text_stat.ini [new file with mode: 0644]

index adcdf8f..5247640 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name=mnit_test
-tags=
+tags=testing
 maintainer=Alexis Laferrière <alexis.laf@xymus.net>
 license=Apache-2.0
 [upstream]
index 189e88d..4ae4096 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name=draw_operation
-tags=
+tags=example
 maintainer=Alexis Laferrière <alexis.laf@xymus.net>
 license=Apache-2.0
 [upstream]
diff --git a/lib/gen_nit.ini b/lib/gen_nit.ini
new file mode 100644 (file)
index 0000000..0f1530c
--- /dev/null
@@ -0,0 +1,11 @@
+[package]
+name=gen_nit
+tags=devel
+maintainer=Alexis Laferrière <alexis.laf@xymus.net>
+license=Apache-2.0
+[upstream]
+browse=https://github.com/nitlang/nit/tree/master/lib/gen_nit.nit
+git=https://github.com/nitlang/nit.git
+git.directory=lib/gen_nit.nit
+homepage=http://nitlanguage.org
+issues=https://github.com/nitlang/nit/issues
diff --git a/lib/text_stat.ini b/lib/text_stat.ini
new file mode 100644 (file)
index 0000000..fb0ab2b
--- /dev/null
@@ -0,0 +1,11 @@
+[package]
+name=text_stat
+tags=debug,lib
+maintainer=Lucas Bajolet <r4pass@hotmail.com>
+license=Apache-2.0
+[upstream]
+browse=https://github.com/nitlang/nit/tree/master/lib/text_stat.nit
+git=https://github.com/nitlang/nit.git
+git.directory=lib/text_stat.nit
+homepage=http://nitlanguage.org
+issues=https://github.com/nitlang/nit/issues