<div dir="ltr">Hi,<br><br>I am interested in using dbus in an embedded system.&nbsp; Some of the processes in the system will send signals that have large byte arrays in the payload.&nbsp; While running some benchmarks, I noticed that sending a message that contains an array of bytes takes approximately 3 - 4 times as long as sending a message with the same payload declared as an array of integers with 1/4 the number of elements (i.e. the number of bytes transferred is the same, only the type declaration differs).&nbsp; Upon investigating I noticed that some of the extra overhead is caused by message validation.&nbsp; I read about running libdbus in &quot;trusted peer&quot; by setting mode to DBUS_VALIDATION_MODE_WE_TRUST_THIS_DATA_ABSOLUTELY (load_message, dbus-message.c), on this mailing list.&nbsp; <br>
<br>I have a small, known set of dbus clients with a known set of messages, so it seems that this is a good solution for me.&nbsp; However, I have two questions about this:<br><br>1.&nbsp; I noticed that some of the execution time in the scenario described above is in the dbus-daemon.&nbsp; I suspect that it is also caused by message validation, but didn&#39;t see where this was happening in the code.&nbsp; Is there a similar change that I can make in the dbus-daemon code to put it into &quot;trusted peer&quot; mode?<br>
<br>2.&nbsp; Are there any plans to make this a configuration option (either compile-time or run-time) in the future?<br><br>Thanks,<br><br>Jon<br></div>