Skip to content

more compact file, and slightly faster #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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