Minor optimizations and improvements #58

Closed
opened 2025-11-10 12:09:55 +00:00 by jabber.developer · 0 comments
  • Optimize glib iterations: g_hash_table_get_keys to g_hash_table_iter_init
  • connection.c: potential bug on 1031 calloc zeros the array, so each conn.queued_messages[n] starts as NULL. The loop condition n < send_queue_len && conn.queued_messages[n] evaluates to false immediately (since NULL is falsey), skipping the body entirely. Messages are dropped from the queue (via drop_element) but never stored—effectively lost.
  • cons_show(variable instead of cons_show("%s", variable)
- [x] Optimize glib iterations: g_hash_table_get_keys to g_hash_table_iter_init - [x] connection.c: potential bug on 1031 calloc zeros the array, so each conn.queued_messages[n] starts as NULL. The loop condition n < send_queue_len && conn.queued_messages[n] evaluates to false immediately (since NULL is falsey), skipping the body entirely. Messages are dropped from the queue (via drop_element) but never stored—effectively lost. - [x] cons_show(variable instead of cons_show("%s", variable)
jabber.developer added the
Kind/Enhancement
label 2025-11-10 12:09:55 +00:00
jabber.developer added this to the Plans (2025-2026) project 2025-11-10 12:25:47 +00:00
jabber.developer moved this to To Do in Plans (2025-2026) on 2025-11-10 12:26:06 +00:00
jabber.developer moved this to In Progress in Plans (2025-2026) on 2025-11-10 12:27:44 +00:00
jabber.developer moved this to To Do in Plans (2025-2026) on 2025-11-10 12:28:23 +00:00
jabber.developer2 moved this to In Progress in Plans (2025-2026) on 2025-11-10 12:55:42 +00:00
jabber.developer2 moved this to To Do in Plans (2025-2026) on 2025-11-10 12:55:47 +00:00
jabber.developer2 moved this to In Progress in Plans (2025-2026) on 2025-11-10 12:55:49 +00:00
jabber.developer2 self-assigned this 2025-11-10 12:56:41 +00:00
jabber.developer2 added reference playground/fix/src_refactoring 2025-11-10 15:50:07 +00:00
jabber.developer moved this to Verification in Plans (2025-2026) on 2026-01-16 15:41:04 +00:00
jabber.developer moved this to In Progress in Plans (2025-2026) on 2026-01-16 15:41:22 +00:00
jabber.developer added the
Priority
Medium
3
Reviewed
Confirmed
1
labels 2026-01-21 17:02:23 +00:00
jabber.developer moved this to Done in Plans (2025-2026) on 2026-02-06 19:02:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devs/cproof#58
No description provided.