Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joouha/pygmentize-faster
Slightly faster syntax highlighting
https://github.com/joouha/pygmentize-faster
pygments syntax-highlighting
Last synced: about 2 months ago
JSON representation
Slightly faster syntax highlighting
- Host: GitHub
- URL: https://github.com/joouha/pygmentize-faster
- Owner: joouha
- License: mit
- Created: 2022-08-26T21:51:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T22:10:18.000Z (over 2 years ago)
- Last Synced: 2024-10-12T15:07:47.788Z (3 months ago)
- Topics: pygments, syntax-highlighting
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pygmentize Faster
This package uses [pygments-cache](https://github.com/xonsh/pygments-cache) to run `pygmentize` just a little bit faster.
It overrides the `pygmentize` script provided by `pygments`.
## Benkmarks
`pygmentize-faster` runs about twice as fast as `pygmentize`:
```bash
$ time fd -d1 -j1 '.py$' -x python -m pygmentize {} > /dev/null ';' /usr/lib/python3.10
user=65.25s system=7.81s cpu=98% total=1:14.45$ time fd -d1 -j1 '.py$' -x python -m pygmentize_faster {} > /dev/null ';' /usr/lib/python3.10
user=33.61s system=4.96s cpu=99% total=38.663```