-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A 'zero-copy' EventBody<'a, T>
without custom deserializer?
#160
Comments
EventBody<'a, T>
without custom deserializers?EventBody<'a, T>
without custom deserializer?
Ah yes, it could be any "string" contained in the Often, this "string" is really an enum in disguise, sadly. |
Revisiting this, since I've been looking for performance uplifts.... Should we do what I'm wondering if you'd be interested in trying to implement this? My suggestion would be to implement a Looks like a lot of work, so no need to say yes... but I have noticed some of our tests are slow. A few ms each just to serialize/deserialize data (you can check with EDIT: I remember your benchmarks showed much better performance than a few ms per test, so maybe that's pure overhead from |
In atspi-common/src/events/mod.rs:~45
We find this
EventBody<'a, T>
definition that has puzzled me for a while.It's field
kind
is a genericT
.In D-Bus, this is a string type
s
.The comment says we may become
&str
orState
and there might be more.It has been here as long as I know.
What was the idea?
I imagine something with custom deserialization?
It seems not to be in use at the moment, and has not been for over a year. Correct?
While I am in favor of exploring a 'zero-copy' (borrowed)
EventBody<'_>
we should try that in a separate tree and not keepdead code around in main.
If it is used by externally, but not internally, we should probably write that in the comments to avoid this question in the future.
Thanks in advance!
The text was updated successfully, but these errors were encountered: