gonsolo
(Andreas Wendleder)
3
Yes, this was with -Ounchecked.
That's via mmap, right? Do you have a better idea how to read binary files byte by byte? I couldn't find anything in the documentation.
Ok, that was it. I changed that to load(fromByteOffset: index, as: T.self) and timings are down from 4.6s to 0.04s.
I would have assumed though that creating a view is not as expensive.
Thanks!