613 karma · joined Jan 27, 2020 (6y ago) · 468 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
ETA:
Non-USA interior: https://img.sm360.ca/images/article/the-honda-way/58810//the...
USA interior: https://file.kelleybluebookimages.com/kbb/base/evox/StJ/1082...
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
https://factoryos.com/press/housing-development-erected-in-w...
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
If your use case is really simple, and you want the fastest possible proto decoding, you can hand-roll it pretty easy.
message point { fixed32 x = 1; fixed32 y = 2; }
Then your code is structured such as var x uint32
var y uint32
for len(buf) > 0 {
switch buf[0] {
case (1<<3) & 5: // Field 1, type fixed32
x=binary.LittleEndian.Uint32(buf[1:])
buf = buf[5:]
case (2<<3) & 5: // Field 2, type fixed32
y=binary.LittleEndian.Uint32(buf[1:])
buf = buf[5:]
default:
// Freak out somehow
}
Improve the exception hardness of this code to the extent that it suits your use case.comment 6y ago · link · parent