Skip to content

perf: speed up dashboard startup and CI security setup - #32

Merged
MatsoDev merged 3 commits into
mainfrom
chore/repo-efficiency
Nov 24, 2026
Merged

MatsoDev merged 3 commits into
mainfrom
chore/repo-efficiency

Conversation

@MatsoDev

@MatsoDev MatsoDev commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

What

  • Defer loading the prediction model stack until an authenticated request needs it.
  • Parse and hash the dataset manifest from one bounded read.
  • Install only pinned audit tools in the CI security job. Keep the full development requirements audit and the existing Bandit scan.

Why

The dashboard imported PyTorch at startup, the dataset endpoint read the same manifest twice, and the security job spent 39–46 seconds installing the development environment across four successful main runs.

Local measurements

  • Fresh-process app import fell from 2.56 s to 0.43 s median over seven runs per version.
  • Across 51 calls per dataset, manifest reads fell from two to one per call. The regression test replaces the file between reads and verifies that the manifest and digest stay consistent.

How tested

  • make lint
  • Full pytest suite through make coverage with 643 passed, 6 optional skips and 88% combined coverage
  • make security in a fresh environment containing only the pinned audit tools
  • Isolated synthetic prediction tests and a cached Docker build
  • make demo

Checklist

  • Conventional Commits title
  • No datasets, weights, environment files or MLflow output committed
  • Reviewed HTTP and CI changes against the repository security baseline
  • Updated the architecture, API and testing docs
  • Preserved documentation navigation, dependency boundaries and generated files

@MatsoDev
MatsoDev merged commit 47b3414 into main Nov 24, 2026
3 checks passed
@mohamed2ze
mohamed2ze deleted the chore/repo-efficiency branch November 24, 2026 05:15
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.

2 participants