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

constgrep is slow #1491

Open
zachriggle opened this issue Apr 22, 2020 · 1 comment
Open

constgrep is slow #1491

zachriggle opened this issue Apr 22, 2020 · 1 comment

Comments

@zachriggle
Copy link
Contributor

@zachriggle zachriggle commented Apr 22, 2020

The constgrep tool could probably be a bit faster. I'm not sure what's making it so slow at the moment. It shouldn't take ~2 seconds to look up a value.

$ time constgrep EPERM
#define EPERM 1
constgrep EPERM  1.12s user 0.43s system 88% cpu 1.751 total
@zachriggle zachriggle added bug easy enhancement and removed bug labels Apr 22, 2020
@zachriggle
Copy link
Contributor Author

@zachriggle zachriggle commented Apr 22, 2020

Honestly it might just be fastest to pass e.g. pwnlib/constants/linux/i386.py to grep directly and do some post-processing (or just invoke the lines).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.