Skip to content

Comments

more compact file, and slightly faster#14

Open
pablovaldes wants to merge 2 commits intoquicklisp:masterfrom
pablovaldes:master
Open

more compact file, and slightly faster#14
pablovaldes wants to merge 2 commits intoquicklisp:masterfrom
pablovaldes:master

Conversation

@pablovaldes
Copy link

@pablovaldes pablovaldes commented Nov 12, 2016

time echo version-$(grep -Eohm1 2[0-9-]{9} quicklisp.lisp)
-> version-2015-01-28

real 0m0,005s
user 0m0,000s
sys 0m0,000s

time echo version-grep 'defvar qlqs-info:.version.' quicklisp.lisp | cut -d\" -f 2
-> version-2015-01-28

real 0m0,010s

time echo version-$(grep 'defvar qlqs-info:.version.' quicklisp.lisp | cut -d" -f 2)
version-2015-01-28

real 0m0,066s

time echo version-grep -Eohm1 2[0-9-]{9} quicklisp.lisp
version-2015-01-28

real 0m0,073s

suggestion to change old legacy backticks by $(), more readable
We avoid calling cut, and making grep eval all the lines of quicklisp.lisp (it stop after the first lines). We cut also a few bytes of weight in the makefile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant