Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fair. What I meant is that the performance delta between JSON and any other interchange data format should be a non-issue in this context. I would be quite surprised to hear that any performance problems systemd has with D-Bus was with serialization/de-serialization.


> performance delta between JSON and any other interchange data format should be a non-issue

it's hard to say, for most D-Bus taks perf. is an absolute non issues, but still you have bus-1 and all kind of tries to make D-Bus perform faster, reason is there are edge cases where it matters

and even if the marshaling speed might not matter the size can, like if something goes really wrong and tens of thousand of system events get spammed the difference between the memory usage of in-flight messages of a compact format vs. json can make the difference between memory pressure effectively killing your server and you recovering reliable

though what is an open question is how relevant that is in pracive

and that is quite hard to say without inside information for companies running systems where such a thing could happen on a scale where such a thing does happen (e.g. google)


Yeah... it's easy to say JSON won't be an issue. It's difficult to switch from JSON when it turns out you were wrong.

https://raphlinus.github.io/xi/2020/06/27/xi-retrospective.h...

Given how central this is going to be why would you skip the tiny bit of extra work needed to use a binary format?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: