[swift-users] Parsing binary data
Tino Heth
2th at gmx.de
Fri Jul 8 04:12:41 CDT 2016
> It should be simple: use Array for your data.
Doing data-processing in big blocks often improves performance, and when I checked the effect of a very small buffer, it was quite significant.
But arrays are no option for me, because my data isn't structured that way:
It's a stream of different elements (timestamp, type, and a payload that depends on the type), so I have evaluate byte-by-byte…
But it seems I'm lucky, because the next format fits well into arrays :-).
I guess I'll give it a try, and I'll share my insights here if they are worth it (most likely, I won't write a comparison implementation in C if Swift is fast enough…)
Thanks,
Tino
More information about the swift-users
mailing list