aprs.me/lib/aprsme_web/live/map_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
..
components.ex vendor heroicons SVGs, remove GitHub dependency 2026-03-03 13:34:23 -06:00
data_builder.ex chore: update dependencies and fix pre-existing issues 2026-04-15 14:07:29 -05:00
display_manager.ex fix: stabilize moving station tracking 2026-03-26 18:48:43 -05:00
historical_loader.ex Fix dialyzer type errors in coordinate validation 2026-02-20 18:17:59 -06:00
index.ex perf: reduce per-packet allocations in ingest pipeline 2026-04-19 13:33:16 -05:00
navigation.ex Add logging to map location determination for debugging 2026-03-22 16:27:43 -05:00
packet_batcher.ex updates with parser updates 2025-08-03 09:19:31 -05:00
packet_processor.ex Batch RF path queries, batch marker removals, and JS callsign index 2026-02-20 09:04:22 -06:00
packet_utils.ex Remove dead PostGIS code, deduplicate utilities, and simplify module hierarchy 2026-02-20 13:39:07 -06:00
popup_component.ex integrate /:call to main page 2025-07-13 10:36:58 -05:00
rf_path.ex Batch push_events, RF path queries, and ETS tuning for hot paths 2026-02-20 08:30:54 -06:00
url_params.ex fix: Resolve majority of dialyzer type errors 2025-07-30 13:30:21 -05:00