faster_gem_script 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +41 -0
- data/bin/faster_gem_script +1 -1
- metadata +2 -2
data/README
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
Example:
|
2
|
+
|
3
|
+
# install it
|
4
|
+
C:\> gem install faster_gem_script
|
5
|
+
|
6
|
+
# install something to optimize
|
7
|
+
|
8
|
+
C:\> gem install whichr
|
9
|
+
|
10
|
+
C:\>whichr whichr
|
11
|
+
higher in the list is executed first
|
12
|
+
C:\installs\ruby19_mingw\bin\whichr.bat
|
13
|
+
|
14
|
+
C:\>faster_gem_script C:\installs\ruby19_mingw\bin\whichr
|
15
|
+
|
16
|
+
# now run it twice
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
C:\> timer whichr whichr
|
21
|
+
higher in the list is executed first
|
22
|
+
C:\installs\ruby19_mingw\bin\whichr.bat
|
23
|
+
|
24
|
+
2.484375
|
25
|
+
|
26
|
+
C:\dev\ruby\faster_gem_script>timer whichr whichr
|
27
|
+
higher in the list is executed first
|
28
|
+
C:\installs\ruby19_mingw\bin\whichr.bat
|
29
|
+
|
30
|
+
0.40625
|
31
|
+
|
32
|
+
Yea much faster now.
|
33
|
+
|
34
|
+
You can revert back to the original performance, too.
|
35
|
+
|
36
|
+
C:\> gem install whichr
|
37
|
+
C:\> timer whichr whichr
|
38
|
+
higher in the list is executed first
|
39
|
+
C:\installs\ruby19_mingw\bin\whichr.bat
|
40
|
+
|
41
|
+
2.5625
|
data/bin/faster_gem_script
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faster_gem_script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Pack
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-27 00:00:00 -07:00
|
13
13
|
default_executable: faster_gem_script
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|