Repository navigation
heronin: map math and a small map tile cache - #44
Merged
Merged
Conversation
Signed-off-by: fizzy foxnne-desktop-codex-2 <slot+foxnne-desktop-codex-2@fizzy.invalid>
Signed-off-by: fizzy pop-os-codex-1 <slot+pop-os-codex-1@fizzy.invalid>
|
Rework published. |
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.
heronin: map math and a small map tile cache
Part of fizzyedit/work#1213
In plain words
This adds the groundwork for showing photo locations on a map. It works out which map pieces are needed and keeps a small set available for reuse.
What changes
What you will notice
Nothing visible: internal groundwork for the map view in a later change.
How we know it works
Three map-math tests check positions, fitting and edge tiles. Two cache tests check request limits, saved image bytes, failed requests, eviction, sign-out and cancellation using an in-process fake. All six requested gates passed.
How this serves fizzy
The platform goal moves forward with reusable map groundwork for photo locations.
For agents: technical summary
Goal
Provide Mercator math and a bounded tile cache for M1b-1.
What changed and why
Exported model.mercator; added a page-allocator-backed cache with 64 entries, 16 wanted keys and at most two concurrent GETs. Failed entries remain cached until eviction. Deinit cancels outstanding jobs and frees retained bodies and URLs.
Budget: 116 ADDED non-test lines; 223 added+deleted lines across the seven implementation/test files. Counts use git diff --numstat HEAD plus line counts for the four untracked new Zig files; *_tests.zig is excluded only from the first count. Handoff documents are outside the implementation diff budget.
How it was verified
Not done / follow-ups
Map view integration belongs to M1b-2. No server or build-file changes. No screenshots or socket-based tests added.
Part of fizzyedit/work#1213