aprs.me/lib/aprsme_web/live
Graham McIntire 31ea64aa6c
perf: reduce per-packet allocations in ingest pipeline
Drop the pre-insert aprs_messages broadcast in Is.dispatch (subscribers
already get a richer payload via postgres:aprsme_packets after insert).
Switch PacketsLive.CallsignView to the per-callsign packets:<CS> topic
so it only receives relevant packets instead of filtering every one.

In PacketConsumer: reuse the received_at stamped in Is.dispatch instead
of calling DateTime.utc_now/0 per packet; drop the duplicate struct_to_map
pass (Is.dispatch already handled it); fold coordinate validation and
Geo.Point construction into set_lat_lon + create_location_geometry so
coords are normalized once; extract device_identifier from the already-
normalized attrs; pre-build the broadcast payload once (identifier pick,
lat/lon aliases, routing callsign) so the async broadcast task no longer
does Map.drop/Map.merge per packet.

Rewrite PacketSanitizer.sanitize_packet / sanitize_data_map with Map.new/2
instead of Enum.reduce + Map.put — one allocation per packet instead of N.

Also compute has_weather in Packet.changeset/2 so direct-changeset inserts
(tests, backfills) populate it the same way the GenStage pipeline does.
2026-04-19 13:33:16 -05:00
..
bad_packets_live Remove DaisyUI, migrate to pure Tailwind CSS with TailwindUI patterns 2026-02-19 10:07:50 -06:00
components fix compile warnings 2025-07-09 16:58:07 -05:00
info_live fix: address security vulnerabilities and concurrency issues 2026-03-23 16:59:09 -05:00
map_live perf: reduce per-packet allocations in ingest pipeline 2026-04-19 13:33:16 -05:00
packets_live perf: reduce per-packet allocations in ingest pipeline 2026-04-19 13:33:16 -05:00
shared fix: stabilize moving station tracking 2026-03-26 18:48:43 -05:00
status_live fix: address security vulnerabilities and concurrency issues 2026-03-23 16:59:09 -05:00
weather_live Remove dead PostGIS code, deduplicate utilities, and simplify module hierarchy 2026-02-20 13:39:07 -06:00
about_live.ex en español 2025-07-05 15:51:39 -05:00
about_live.html.heex Apply TailwindCSS Plus design patterns across site 2026-02-20 17:56:06 -06:00
api_docs_live.ex docs: add weather nearby API endpoint to documentation 2026-03-22 12:16:32 -05:00
locale_hook.ex clean up warnings 2025-07-16 08:55:46 -05:00
theme_manager.ex more performance improvements/cleanup 2025-07-14 16:49:55 -05:00
user_confirmation_instructions_live.ex fix: address security vulnerabilities and concurrency issues 2026-03-23 16:59:09 -05:00
user_confirmation_live.ex Remove DaisyUI, migrate to pure Tailwind CSS with TailwindUI patterns 2026-02-19 10:07:50 -06:00
user_forgot_password_live.ex fix: address security vulnerabilities and concurrency issues 2026-03-23 16:59:09 -05:00
user_login_live.ex Remove DaisyUI, migrate to pure Tailwind CSS with TailwindUI patterns 2026-02-19 10:07:50 -06:00
user_registration_live.ex fix: address security vulnerabilities and concurrency issues 2026-03-23 16:59:09 -05:00
user_reset_password_live.ex Remove DaisyUI, migrate to pure Tailwind CSS with TailwindUI patterns 2026-02-19 10:07:50 -06:00
user_settings_live.ex fix: address security vulnerabilities and concurrency issues 2026-03-23 16:59:09 -05:00