Hoshina
72e897f95a
fix(channels): fix memory hazards in channel abstraction layer
Address 7 memory/architecture issues affecting long-running gateway
processes on embedded devices (<10MB RAM):
- Fix dispatcher busy-wait: remove select+default pattern that caused
CPU spin after context cancellation; SubscribeOutbound handles ctx
internally
- Add TTL janitor for typingStops/placeholders sync.Map entries to
prevent unbounded accumulation when outbound paths fail
- Reduce queue buffers from 100 to 16 slots (~84% memory reduction)
- Optimize SplitMessage with index-based rune operations to reduce
intermediate string/rune allocations
- Replace uuid.New() with atomic counter + random prefix for media
scope IDs (eliminates per-call crypto/rand syscall)
- Lazy channel worker creation: defer goroutine+buffer allocation
until channel.Start() succeeds
2026-02-24 22:30:22 +08:00
..
2026-02-23 06:56:48 +08:00
2026-02-23 06:56:48 +08:00
2026-02-23 06:56:48 +08:00
2026-02-23 06:56:48 +08:00
2026-02-23 06:56:48 +08:00
2026-02-23 21:34:37 +08:00
2026-02-23 06:56:48 +08:00
2026-02-24 12:17:11 +08:00
2026-02-24 12:17:11 +08:00
2026-02-24 12:17:11 +08:00
2026-02-23 06:56:48 +08:00
2026-02-23 06:56:48 +08:00
2026-02-23 06:56:48 +08:00
2026-02-24 22:30:22 +08:00
2026-02-22 23:51:55 +08:00
2026-02-22 23:51:55 +08:00
2026-02-23 01:45:48 +08:00
2026-02-23 01:45:48 +08:00
2026-02-23 04:55:15 +08:00
2026-02-24 22:30:22 +08:00
2026-02-24 22:30:22 +08:00
2026-02-23 03:10:57 +08:00
2026-02-20 23:18:46 +08:00
2026-02-23 05:46:34 +08:00
2026-02-24 22:30:22 +08:00
2026-02-23 02:39:09 +08:00