Skip to content

perf: shrink conflict map static payloads - #20

Merged
svg8bit merged 2 commits into
mainfrom
codex/map-static-payload
Aug 21, 2026
Merged

perf: shrink conflict map static payloads#20
svg8bit merged 2 commits into
mainfrom
codex/map-static-payload

Conversation

@svg8bit

@svg8bit svg8bit commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • keep the existing 5-minute static ISR path; no extra Polymarket requests per visitor
  • compact the two runtime Natural Earth GeoJSON sources and round geometry to sub-pixel precision
  • add deterministic generation/check commands with hard payload budgets
  • make the map benchmark record alerts without blocking map drag/zoom runs when the rail is empty

Measured result

  • runtime GeoJSON raw: 233,538 B -> 195,503 B (-16.3%)
  • local gzip transfer: 73,366 B -> 58,421 B (-20.4%)
  • quality-11 Brotli estimate: 54,906 B -> 42,809 B (-22.0%)
  • world visual diff: 0.178% (8% gate)
  • regional visual diff: 0.333% (8% gate)

Geobuf was measured but not added: its compact binary payload plus the required browser decoder was larger than compact Brotli GeoJSON and would move decoding out of MapLibre worker handling.

Verification

  • npm run check
  • npm run test:e2e (32 passed)
  • byte-for-byte asset generation idempotence
  • constrained and Slow 4G benchmark smoke
  • tracked/untracked secret scan

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
oddsfront Ready Ready Preview Aug 21, 2026 8:17pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 33fd7b7f-8a47-4bcf-9000-1fb304bacbbc


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a925833f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/benchmark-map-performance.mjs Outdated
Comment thread scripts/optimize-map-assets.mjs
Comment thread scripts/optimize-map-assets.mjs Outdated
@svg8bit
svg8bit enabled auto-merge (squash) August 21, 2026 20:14
@svg8bit
svg8bit merged commit 6aa1a89 into main Aug 21, 2026
6 checks passed
@svg8bit
svg8bit deleted the codex/map-static-payload branch August 21, 2026 20:21
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