forked from dbus2/zbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚗️ FAILED experiment: Make zbus::Address reference type
We've to decode the string in multiple properties involved here and the input string is readonly so we've to allocate new strings anyway. We could just keep the original string as is and decode on-demand but given that most uses of Address will see these properties being read later, that will only delay alloction. Moreover, it will be worse cause then we'll have to allocate each time the properties in question are ready. So I decided that we shouldn't bother with this, at least for zbus 4 cycle. Maybe we can have a look in the next breaking change.
- Loading branch information
Showing
3 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters