Skip to content

spl: a scrollback you can name, defaulting to the whole day - #48

Merged
valeratrades merged 1 commit into
mainfrom
spl-capacity-flag
Aug 8, 2026
Merged

valeratrades merged 1 commit into
mainfrom
spl-capacity-flag

Conversation

@valeratrades

Copy link
Copy Markdown
Contributor

SCROLLBACK was 20 000 against a trading day of 159 210 ticks, so even --days 1 was mostly reachable only through the thinned backbone. Default is now 250 000 — a one-day replay is held whole, every tick addressable, no thinning at all — and -c/--capacity <ticks> is there for when that is the wrong trade in either direction.

Measured on a one-day replay (--days 1, release):

-c RSS tape
20000 100 MB thinned; step gaps run 1 → 78 across the front
250000 (default) 391 MB whole; gap is 1 throughout

~2.4 KB per retained tick for spl's 42-node graph — mostly Acts::ends, at 20 B per node per tick.

--headless records nothing, so the flag does not apply there. Also surfaced in nix run .'s listing; the viz runner already forwards unrecognized args to the app, so viz spl -r -- -c 500000 and nix run .#spl -- -c 500000 both work.

Follows EV-Quant/exec_viz#6, which is what makes a large capacity worth having: the backbone is filled by fire rather than by tick index, so the bars and the classification keep their resolution where thinning does kick in.

🤖 Generated with Claude Code

20 000 held an eighth of a trading day, so even `--days 1` was mostly thinned.
250 000 holds 159 210 whole — every tick addressable, no thinning at all — and
`-c/--capacity` is there for when that is the wrong trade in either direction.

~390 MB resident against ~100 MB at 20 000, measured on a one-day replay.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@valeratrades
valeratrades merged commit 76fdc37 into main Aug 8, 2026
18 of 29 checks passed
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