Skip to content

Perf: remove unused pandas#12

Open
gibbenergy wants to merge 3 commits intomainfrom
perf/remove-unused-pandas
Open

Perf: remove unused pandas#12
gibbenergy wants to merge 3 commits intomainfrom
perf/remove-unused-pandas

Conversation

@gibbenergy
Copy link
Copy Markdown
Owner

Summary

This PR addresses issues with Perf: remove unused pandas

Planned Commits

  • Skip uv sync and Playwright install on subsequent runs
  • Remove dead DataFrame code path in table_data_extractor
  • Remove unused pandas dependency

pandas (+ numpy) is declared in pyproject.toml and requirements.txt but
never imported anywhere in the backend. It adds ~5.5s to cold start and
significant installation time for zero functionality.
The duck-typing check for pandas DataFrame objects was never reached
since the frontend always sends plain JSON arrays. Removes dead code
now that the pandas dependency is gone.
First run installs everything as before. Subsequent runs detect existing
installations and skip directly to starting servers:
- Python deps: check for .venv\Scripts\uvicorn.exe
- Playwright: check for %LOCALAPPDATA%\ms-playwright\chromium-*

Saves minutes of unnecessary dependency resolution on every app launch.
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