Skip to content
Snippets Groups Projects
Commit d62d2714 authored by Rafal Bielski's avatar Rafal Bielski :wave:
Browse files

TrigByteStreamTools: Optimise the dumpHLTContentInBS_run3 script

Processing ByteStream data in python is full of performance traps.
Juggling python and C++ types together to decode HLT EDM collection
names from a BS file makes it even worse. Optimise the script by
reducing the most costly operations, mainly iterations over raw data,
by reworking loops and functions, and using lru_cache to avoid
decoding the same words multiple times.

Cuts down the time it takes to process 1000 events by a factor of 2
from 400 to 200 seconds.
parent f754aacc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment