From 0041738578169fd048359ed0a95bedf83f39e8ee Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 23 Mar 2023 17:43:31 +0100 Subject: [PATCH] Add optimization comment in stream_cmp --- src/emu/player.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emu/player.c b/src/emu/player.c index d7c4254..a3dcca5 100644 --- a/src/emu/player.c +++ b/src/emu/player.c @@ -16,7 +16,9 @@ * < 0 if a < b * = 0 if a == b * - * Invert the comparison function to get a min-heap instead + * Invert the comparison function to get a min-heap instead. + * TODO: Consider using an offset from heap_node_t to the int64_t to be + * compared, so we can optimize the heap insertion. */ static inline int stream_cmp(heap_node_t *a, heap_node_t *b)