[openstreetmap/openstreetmap-website] Cache expanded preferred_languages (PR #6344)

mmd notifications at github.com
Sat Aug 23 11:35:54 UTC 2025


mmd-osm left a comment (openstreetmap/openstreetmap-website#6344)

> Locale::List#expand and/or Locale#candidates memoize their result

I haven't really considered this point. Somehow I thought this is some third party library code, and not something we could change in our repo.

> the locale to tag name mapping would still have to be done each time but I suspect the locale expansion is the expensive part?

Yes, locale expand is the expensive part. 



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

Message ID: <openstreetmap/openstreetmap-website/pull/6344/c3216745022 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250823/aa216a2e/attachment.htm>


More information about the rails-dev mailing list