Mateusz Mandera
f119c33789
delete_in_topic: Don't fetch .recipient for each message in a loop.
...
The grouping logic in `do_delete_messages` calls
`message.is_stream_message()` in a loop, which needs to access
message.recipient. This is obviously super inefficient if .recipient
hasn't been prefetched for the message objects.
`delete_in_topic` is the only function that calls `do_delete_messages`
with many messages, so this is the only spot we need to fix, to address
the immediate bug.
Of course a better improvement would be to fix `do_delete_messages` to
do something smarter than naively accessing message.recipient in a loop.
2025-08-11 10:08:40 -07:00
..
2025-08-04 18:41:00 -07:00
2024-07-13 22:28:22 -07:00
2025-07-25 22:29:51 -07:00
2023-10-22 17:06:34 -07:00
2025-07-28 10:59:38 -07:00
2025-08-06 16:34:40 -07:00
2025-06-30 09:13:25 -07:00
2025-08-08 11:59:29 -07:00
2025-06-30 09:13:25 -07:00
2024-07-13 22:28:22 -07:00
2025-08-04 18:43:14 -07:00
2024-10-13 11:42:49 -07:00
2025-03-19 21:54:14 -07:00
2025-08-08 18:59:37 -07:00
2025-07-17 15:44:52 -07:00
2025-07-22 20:57:36 -07:00
2025-06-30 09:13:25 -07:00
2025-06-30 09:13:25 -07:00
2025-06-30 09:13:25 -07:00
2025-02-12 12:05:04 -08:00
2023-11-27 16:16:23 -08:00
2025-07-11 15:48:20 -07:00
2025-03-13 14:38:16 -07:00
2025-07-18 17:37:26 -07:00
2025-07-23 11:11:46 -07:00
2025-06-30 09:13:25 -07:00
2025-02-28 10:10:33 -08:00
2025-06-30 09:13:25 -07:00
2024-07-15 16:49:32 -07:00
2025-03-28 17:44:58 -07:00
2024-07-11 07:31:39 -07:00
2024-07-15 16:49:32 -07:00
2024-07-15 16:49:32 -07:00
2025-06-30 09:13:25 -07:00
2025-08-08 18:59:37 -07:00
2025-08-08 18:59:37 -07:00
2025-08-07 17:13:12 -07:00
2024-03-08 11:26:00 -08:00
2025-06-30 09:13:25 -07:00
2025-07-02 12:47:00 -07:00
2024-07-13 22:28:22 -07:00
2024-07-13 22:28:22 -07:00
2025-08-11 10:08:40 -07:00
2025-06-30 09:13:25 -07:00
2025-06-30 09:13:25 -07:00
2025-08-04 18:41:00 -07:00
2025-06-30 09:13:25 -07:00
2025-07-11 14:15:49 -07:00
2025-07-29 10:01:40 -07:00
2025-06-30 09:13:25 -07:00
2025-08-01 09:18:19 -07:00
2025-06-30 09:13:25 -07:00
2025-07-07 17:15:08 -07:00
2025-02-13 16:35:43 -08:00
2025-08-08 18:59:37 -07:00
2025-02-13 12:40:53 -08:00