|
|
Experimental Physics and
| ||||||||||||||||
|
|
Yeah, DBR_V4_GENERIC_BYTES is not efficient. It stores the pva encoding structure with every message. I’ve thought about making a version where the encoding is stored in the type as well instead, but you run into the ‘union’ and ‘any’ types problem.
However, if you use compression, I will imagine you would gain most of the data storage back as the message type is duplicated it should compress very well.
Creating a ‘int64’ or ‘long’ type makes sense regardless.
It would be nice to maybe make a
DBR_V4_GENERIC_FIXED_TYPE_BYTES type as well
where we store the message type in the metadata of the file rather than in each event. Where it supports only pvData without ‘union' or ‘any' in the structure. I’m not sure of the benefit of doing this vs implementing say the NTTable or NTMatrix etc.
If I were to start the protobuf spec from scratch, I would probably try write the full pvaData spec as a protobuf spec and then add the nt types on top. But that’s probably overkill.
Sent from Outlook for Mac
| ||||||||||||||||
| ANJ, 30 Sep 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
· Distributions · Download · Documents · Links · Licensing · |