Re:Fast key-value stores: An idea whose time has come and gone
by shereadsthenews on Monday June 24, 2019 @11:51AM
(#20264787)
Encoding an image as a repeated sequence of variable-length integers would obviously be a poor choice.
Re:Fast key-value stores: An idea whose time has come and gone
by rootlocus on Monday June 24, 2019 @01:03PM
(#20265727)
Except.. that's pretty much how raw images are represented. Substituting "integers" for "bytes" if you want channel resolution, or leaving integers if you have 32bit pixel depth.
https://github.com/nothings/stb/blob/master/stb_image.h#L120
However, if your entire world consists of pushing around images to GPUs/TPUs, that's pretty much the only workload you ever need to optimize from your larger ops system.
Edit: not sure that this particular use case is exactly what's going on in that benchmark, now that I look more closely. Also, I wouldn't want to assert that it's a use case that matters a ton.