zeroclaw/src/channels
Alex Gorevski a4b27d2afe perf: eliminate unnecessary heap allocations across agent loop, memory, and channels
- Replace clone()+clear() with std::mem::take() in chunker (items 1, 6)
- Add Vec::with_capacity() hints in chunker split functions (item 2)
- Replace collect::<Vec<_>>().join() with direct iteration in IRC and
  email channels (item 3)
- Share heading strings via Rc<str> instead of cloning per chunk (item 5)
- Use borrowed references in provider tool spec types to avoid cloning
  name/description/parameters per tool per request (item 7)

Closes #712

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-19 07:06:27 -08:00
..
cli.rs fix(channels): preserve slack thread root ids 2026-02-19 18:52:30 +08:00
dingtalk.rs perf(build): gate Matrix channel for faster iteration 2026-02-19 21:29:53 +08:00
discord.rs Merge pull request #865 from agorevski/feat/systematic-test-coverage-852 2026-02-19 07:02:20 -08:00
email_channel.rs perf: eliminate unnecessary heap allocations across agent loop, memory, and channels 2026-02-19 07:06:27 -08:00
imessage.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
irc.rs perf: eliminate unnecessary heap allocations across agent loop, memory, and channels 2026-02-19 07:06:27 -08:00
lark.rs perf(build): gate Matrix channel for faster iteration 2026-02-19 21:29:53 +08:00
linq.rs feat: add multimodal image marker support with Ollama vision 2026-02-19 21:25:21 +08:00
matrix.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
mattermost.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
mod.rs perf(build): gate Matrix channel for faster iteration 2026-02-19 21:29:53 +08:00
qq.rs perf(build): gate Matrix channel for faster iteration 2026-02-19 21:29:53 +08:00
signal.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
slack.rs fix(channels): preserve slack thread root ids 2026-02-19 18:52:30 +08:00
telegram.rs Merge pull request #865 from agorevski/feat/systematic-test-coverage-852 2026-02-19 07:02:20 -08:00
traits.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
whatsapp.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
whatsapp_storage.rs fix(whatsapp): complete wa-rs channel behavior and storage correctness 2026-02-19 18:03:09 +08:00
whatsapp_web.rs fix(whatsapp): complete wa-rs channel behavior and storage correctness 2026-02-19 18:03:09 +08:00