Use new NullStr based SpComponent#2545
Conversation
568ce08 to
f69dacd
Compare
f69dacd to
4c7b835
Compare
|
(no more force pushes, promise) |
|
Note to self, to test this, I should probably:
|
|
This has now been tested against a local
|
hawkw
left a comment
There was a problem hiding this comment.
Well, this turns out to be a surprisingly small change, looks good to me!
As an aside, it would be interesting to see how much smaller this makes the control-plane-agent task, now that the strings in the generated DeviceDescription array are no longer being null-padded...
I did realize that it's less of a clear win, because we're actually now building an array of slices instead of an array of arrays, which means the strings themselves are no longer padded, but we now have an extra array of 8 bytes per string, which means we win some when the components are < 8 bytes of text, and lose some when the components are > 8 bytes of text. We'll spend a bit less time searching/comparing (we only compare used bytes, I would bet the search will also match lens first too), but this is probably in the category of "too small to be meaningful". We could be more clever, but imo it's probably a tossup. I do think it'll be a bigger win for pmbus rail names, since those are 32-byte max instead of 16-byte max. |
Codegen impl changes necessary to support oxidecomputer/management-gateway-service#496.
Should wait for that to merge first.This has now merged. This PR bumps the git version used.