[openstreetmap/openstreetmap-website] Process trace files once (PR #5233)

Anton Khorev notifications at github.com
Thu Sep 26 02:20:41 UTC 2024


> I was wondering about the memory overhead

Alternatively we can do two passes. After the first pass we'll know lat/lon spans and the number of trackpoints which lets us start rendering. Then on the second pass we render the thumbnail and all animation frames in parallel. This doesn't require storing lats/lons in memory. But it may not save much in case of archived files that are read into a string. That string is likely larger than the lat/lon arrays.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5233#issuecomment-2375618019
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5233/c2375618019 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240925/ff3f2537/attachment.htm>


More information about the rails-dev mailing list