alecthomas / alecthomas/pawk

auto import is very slow

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
523
Forks
32
PR merge metrics
No merged PRs in 30d

Description

```python
all_text = '"v1Cd5Yk6x_f2cqrqNV6Iy_1ab34_dfI" + l'
modules = re.findall(r'([\w.]+)+(?=\.\w+)\b', all_text)
```

When the code contains the above text, it will be executed for several minutes when searching for module.
After changing to the following regex, it will be executed very quickly.

```python
all_text = '"v1Cd5Yk6x_f2cqrqNV6Iy_1ab34_dfI" + l'
modules = re.findall(r'(?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.