DO NOT MERGE: fpdf2 greenfield planner spike - #204
Draft
yyolk wants to merge 4 commits into
Draft
Conversation
Throwaway greenfield experiment: cover/year/quarter/month/week/day pages, section nav, and calendar page links. Do not merge. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Full year is 436 pages / ~2.6 MB. Document link checks against pypdf named destinations and annotation rects. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
Default N=0 keeps the on-page notes panel only. Day chips to notes-1; notes pages chip back to the day and prev/next notes. Bench runner covers N=0,2,10,20,30,50,100 and stops on OOM. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
Full-year 2026 held at 36936 pages / 31s / 629 MiB peak RSS. Commit N=2 specimen only; leave huge full-year PDFs untracked. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
cursor Bot
pushed a commit
that referenced
this pull request
Sep 8, 2026
Full-year 2026 matrix 0→100 via /usr/bin/time -v. Nothing OOM'd. N=100 was 26s / 518 MiB. Spot-check day↔notes with pypdf. Co-authored-by: Joseph Chiocchi <joe@yolk.cc>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE. Experimental throwaway spike. This branch will not be merged and may be deleted later.
What this is
A greenfield “what if we never ported the Ruby/Typst decisions” experiment. The Typst/parch application tree is stripped. Tiny Python package writes a yearly planner PDF with fpdf2 only.
Generate
Defaults: year 2026, Monday week start, page 106 × 144 mm portrait.
--notes-pages N: 1 daily page + N dedicated notes pages per day.N=0(default) is the day page only, with its on-page notes panel.Notes 1/2 for 1 January
Notes 2/2 for 1 January
Notes-pages benchmark
Full-year 2026, Monday weeks.
/usr/bin/time -varoundpress(generate only). VM: 15 GiB RAM, 4 CPUs, no swap. Order 0 → 2 → 10 → 20 → 30 → 50 → 100. Nothing OOM’d. Last completed N=100. Died N: none. Full-year N≥2 PDFs not committed (N=100 was ~78 MB). Details:BENCH.md.Spot-check (
pypdf):day-2026-07-02andday-2026-07-02-notes-1exist for N≥2; day→notes-1 and notes-1→day annots resolve (N=2: pages 618↔619; N=100: 18454↔18455).Verdict: fpdf2 just holds. RSS/time scale ~linearly (~15 KB RSS per extra notes page). N=2 is trivial; N=10–20 is a few seconds; N=100 (37k pages) finished in 31 s at 629 MiB — no Typst notes-slab RSS cliff. Cost is disk and annotation count, not layout memory.
CI
Old Typst jobs replaced with a specimen generate stub. Do not treat as product CI.
To show artifacts inline, enable in settings.