From a2147f4ab7ba07619102e4700cdc49416f38527b Mon Sep 17 00:00:00 2001 From: Jonathan Diamond Date: Fri, 17 May 2024 22:58:37 -0700 Subject: [PATCH 1/2] Avoid indexing wrapped messages. --- .../parsers/fast_indexer.py | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/python/fusion_engine_client/parsers/fast_indexer.py b/python/fusion_engine_client/parsers/fast_indexer.py index cf4f0dd7..a8feb8b9 100644 --- a/python/fusion_engine_client/parsers/fast_indexer.py +++ b/python/fusion_engine_client/parsers/fast_indexer.py @@ -13,7 +13,7 @@ # NOTE: This needs to be larger then the biggest possible FE message. The # smaller it is, the faster the indexer can run, but if it's not large enough, # messages may be missed. -_MAX_FE_MSG_SIZE_BYTES = 1024 * 12 +_MAX_FE_MSG_SIZE_BYTES = 1024 * 16 # This has been tuned on my laptop to where increasing the read size was giving # diminishing returns on speed. @@ -21,6 +21,11 @@ _PREAMBLE = struct.unpack('= expected_msg_ends[:-1]]) + _logger.debug(f'Dropped {np.sum(~non_overlapped_idx)} wrapped messages.') + index_raw = index_raw[non_overlapped_idx] + total_entries = len(index_raw) _logger.debug(f'FE messages found: {total_entries}') From 2fa8ab3eb0d4370541254df37a36b7568a7ab93c Mon Sep 17 00:00:00 2001 From: Jonathan Diamond Date: Sat, 18 May 2024 14:58:57 -0700 Subject: [PATCH 2/2] Fix empty dtype. --- .../parsers/fast_indexer.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/python/fusion_engine_client/parsers/fast_indexer.py b/python/fusion_engine_client/parsers/fast_indexer.py index a8feb8b9..0c909ab3 100644 --- a/python/fusion_engine_client/parsers/fast_indexer.py +++ b/python/fusion_engine_client/parsers/fast_indexer.py @@ -22,8 +22,8 @@ _PREAMBLE = struct.unpack('