Skip to content
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

Boilerplate speedup #7654

Merged
merged 1 commit into from May 4, 2015
Merged

Boilerplate speedup #7654

merged 1 commit into from May 4, 2015

Conversation

eparis
Copy link
Contributor

@eparis eparis commented May 1, 2015

Do all boilerplate checks in 1 python call. Calling python for every single file is slower than using the bash mess. But this is calling python 1 time and having the python process all of the files.

It's just a little bit faster.....

BEFORE:
$ time hack/verify-boilerplate.sh

real        0m9.378s
user        0m3.405s
sys 0m13.906s

AFTER:
$ time hack/verify-boilerplate.sh

real        0m0.181s
user        0m0.114s
sys 0m0.068s

@eparis
Copy link
Contributor Author

eparis commented May 1, 2015

I'd like to land #7597 first. This will then need a rebase.

@j3ffml
Copy link
Contributor

j3ffml commented May 2, 2015

+1. I'm generally a fan of using python over bash for this sort of thing.

@j3ffml j3ffml self-assigned this May 2, 2015
@j3ffml
Copy link
Contributor

j3ffml commented May 2, 2015

lgtm

@eparis eparis changed the title [WIP DO NOT MERGE] Boilerplate speedup and add python checks [WIP DO NOT MERGE] Boilerplate speedup May 2, 2015
@eparis
Copy link
Contributor Author

eparis commented May 2, 2015

Rebased. blocked on #7637

It's just a little bit faster.....

BEFORE:
$ time hack/verify-boilerplate.sh

real	0m9.378s
user	0m3.405s
sys	0m13.906s

AFTER:
$ time hack/verify-boilerplate.sh

real	0m0.181s
user	0m0.114s
sys	0m0.068s
@eparis eparis changed the title [WIP DO NOT MERGE] Boilerplate speedup Boilerplate speedup May 2, 2015
@j3ffml j3ffml added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 2, 2015
j3ffml added a commit that referenced this pull request May 4, 2015
@j3ffml j3ffml merged commit dda0af0 into kubernetes:master May 4, 2015
@eparis eparis deleted the boilerplate-speedup branch August 4, 2015 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants