Repository navigation
Faster on phones: smaller tiles, leaner columns, quicker first load (#138) - #140
Merged
Merged
Conversation
…138) Phone emulation showed downloads, not processing, are the bottleneck, and that a small-area query used 2-3% of the rows it downloaded. Tiles (data-raw/build_tiles.R; release files unchanged): - 8,000 rows per tile instead of 60,000 - Repository stored as "" when it equals Link (iNaturalist records); rebuilt in toRecord() (web/js/data.js) - Collection Date stored as a date; tiles are sorted on the full timestamp before the time is dropped First load (web/index.html): - logo as WebP (63 -> 15 KB), 64 px favicon instead of the 300 px PNG - Google Analytics loaded 1.5 s after the page - modulepreload for all app and hyparquet modules Plantae on slow 4G: Heron Island 9.4 -> 1.6 s, North Head 10.3 -> 2.4 s, Sydney 10 km circle 32.4 -> 10.3 s; first load 7.7 -> 4.7 s. CSV downloads contain the same rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #138. Measurements and pilots are in the issue comments (findings, pilots).
Phone emulation showed that downloads, not processing, are the bottleneck, and that a small-area query used only 2–3% of the rows it downloaded.
Changes
Tiles (
data-raw/build_tiles.R). The release files and the Shiny app are unchanged, and tiles are rebuilt from the release on every deploy.""when it equals Link (iNaturalist records).toRecord()inweb/js/data.jsrebuilds it.First load (
web/index.html):modulepreloadfor every app and hyparquet module, so they download at once. The list must be kept in sync; seeweb/vendor/README.md.Coordinates are not rounded. They stay at full precision.
Results
Phone emulation: 4× slower CPU; 4G = 9 Mbps / 60 ms; slow 4G = 1.6 Mbps / 150 ms. Both versions use the same data, served gzipped like Pages.
Checked
🤖 Generated with Claude Code