From f6b3295ae29e3ee3c2c8fc3c6738ee4561ca194b Mon Sep 17 00:00:00 2001
From: Marcus Müller <mmueller@gnuradio.org>
Date: Fri, 16 Jul 2021 19:22:21 +0200
Subject: digital/chunks to symbols: be less inefficient
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The block formerly took the tags from get_tags_in_range (which are
sorted), gave them to tag_checker, which sorted them, and then went
through every input sample, checking its index against the next tag.

Removed the tag_checker; that saves us a sorting of a sorted vector.

The other optimization is to not dispatch any tag encountered to the own
message handler; instead, the handler is called directly.

Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
---
 gr-digital/python/digital/bindings/chunks_to_symbols_python.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-digital/python/digital/bindings/chunks_to_symbols_python.cc')

diff --git a/gr-digital/python/digital/bindings/chunks_to_symbols_python.cc b/gr-digital/python/digital/bindings/chunks_to_symbols_python.cc
index 284e1043a7..3586b33e08 100644
--- a/gr-digital/python/digital/bindings/chunks_to_symbols_python.cc
+++ b/gr-digital/python/digital/bindings/chunks_to_symbols_python.cc
@@ -14,7 +14,7 @@
 /* BINDTOOL_GEN_AUTOMATIC(0)                                                       */
 /* BINDTOOL_USE_PYGCCXML(0)                                                        */
 /* BINDTOOL_HEADER_FILE(chunks_to_symbols.h)                                        */
-/* BINDTOOL_HEADER_FILE_HASH(92d3e85da4622d93c34d8226cbaaecf0)                     */
+/* BINDTOOL_HEADER_FILE_HASH(a7e4da5deb77580b19fd40a649ee11a8)                     */
 /***********************************************************************************/
 
 #include <pybind11/complex.h>
-- 
cgit v1.2.3