Skip to content

[codex] optimize speed and refresh benchmarks#11

Merged
alvinwan merged 2 commits intomainfrom
dev/alvin/optimize-speed
Apr 5, 2026
Merged

[codex] optimize speed and refresh benchmarks#11
alvinwan merged 2 commits intomainfrom
dev/alvin/optimize-speed

Conversation

@alvinwan
Copy link
Copy Markdown
Owner

@alvinwan alvinwan commented Apr 5, 2026

Summary

  • remove redundant AST traversals and location-fix passes from the hot minification path
  • keep minified output semantics intact while cutting fixture and package latency substantially
  • refresh the benchmark docs with corrected .tar.gz numbers, validated TexSoup baseline comparisons, and a consolidated results table

Validation

  • PYTHONPATH=. .venv/bin/python -m pytest
  • PYTHONPATH=/private/tmp/pymini-texsoup-testtarget:/private/tmp/pymini-texsoup-repo/tests .venv/bin/python -m pytest /private/tmp/pymini-texsoup-repo/tests -o addopts=''
  • PYTHONPATH=. .venv/bin/python benchmarks/benchmark_speed.py --pyminifier-root /private/tmp/pymini-pyminifier-src/pyminifier-2.1
  • validated file-by-file TexSoup outputs for pyminifier and python-minifier against the upstream 78-test suite

@alvinwan alvinwan marked this pull request as ready for review April 5, 2026 09:26
@alvinwan alvinwan merged commit 751947d into main Apr 5, 2026
10 checks passed
@alvinwan alvinwan deleted the dev/alvin/optimize-speed branch April 5, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant