Gallopsled / Gallopsled/pwntools

constgrep is slow

Open
#1,491 1 comment 0 reactions 0 assignees View on GitHub
command-line enhancement
Dominant language
Python
Stars
13.7k
Forks
1.9k
Avg merge
6d 23h
Merged PRs (30d)
3

Description

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
```

Contributor guide

Open the contributing guide

Research direction

Start by running the reported `time constgrep EPERM` command and inspect the `constgrep` entry point to identify where the lookup spends its time. Profile the command, then verify that the lookup completes substantially faster than the reported ~2 seconds without changing its output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.