Project

General

Profile

Actions

Bug #1897

open

Inefficient sequence search in tetra_find_train_seq

Added by jenda over 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
12/27/2016
Due date:
% Done:

0%

Resolution:
Spec Reference:

Description

Hi,

finding synchronization eats 3 to 4 times more CPU than the actual decoding on my machine (i3-2350M). According to the Perf profiler, all time is spent in tetra_find_train_seq, particularly in the memcmp calls.

Rewriting the search using a more efficient algorithm, for example Aho–Corasick, may speed it up an order of magnitude.

How to reproduce:
1. Capture valid Tetra bits.
2. Generate the same amount of random bits.
3. Observe that the random bits take several times longer for tetra-rx to process.


Files

tetra.patch tetra.patch 7.52 KB jenda, 04/10/2017 12:52 AM
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)