Sha256: bdb359763dcf878b8f89ecaf0c9a0d10774b0d0677b1f75b68906201a740685f

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

Example:

# install it
C:\> gem install faster_gem_script

# install something to optimize

C:\> gem install whichr

C:\>whichr whichr
higher in the list is executed first
C:\installs\ruby19_mingw\bin\whichr.bat

C:\>faster_gem_script C:\installs\ruby19_mingw\bin\whichr

# now run it twice



C:\> timer whichr whichr
higher in the list is executed first
C:\installs\ruby19_mingw\bin\whichr.bat

2.484375

C:\dev\ruby\faster_gem_script>timer whichr whichr
higher in the list is executed first
C:\installs\ruby19_mingw\bin\whichr.bat

0.40625

Yea much faster now.

You can revert back to the original performance, too.

C:\> gem install whichr
C:\> timer whichr whichr
higher in the list is executed first
C:\installs\ruby19_mingw\bin\whichr.bat

2.5625

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faster_gem_script-0.1.2 README