If you have competing needs for logging and performance, I suppose you could upload your binary data to a file as is, and perhaps each entry should be preceded by a tag containing a timestamp and a length value so that you know where it is a particular data bit ends. But I hasten to admit that it is very ugly. You will need to write a utility to read and analyze this file and will be helpless without this utility.
A smarter solution would be to dump your binary data in text form. I think of the โlinesโ of text, again, starting with any tag information that you think is relevant, it is followed by a certain length of information in decimal or hexadecimal form, followed by as many hexes as needed to flush your buffer โ such So you can have some pretty long lines. But since the file is structured line by line, you can use text tools (an editor in the simplest case) to work with it. Hex dumping essentially means that you use two bytes in the log to represent one byte of data (plus a bit of overhead). Heh, disk space is cheap these days.
If these binary buffers have a fairly consistent structure, you can even break out and tag fields (or something like that) to make your data more readable and, more importantly, more searchable. Of course, you don't care how much effort you want to immerse yourself in making your journal entries look beautiful; but the time spent here may well pay off a little later in the analysis.
Carl Smotricz
source share