Re: [PATCH spice-server 1/3] Relax conversion to RedChannel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 07, 2016 at 11:13:21AM +0000, Frediano Ziglio wrote:
> Now RED_CHANNEL is a function call so avoid to call multiple
> time for the same conversion in the same functions.



> This speed up and reduce code and also reduce source line
> length.

To be honest, these are not really convincing arguments :)

Would quoting "35 insertions(+), 27 deletions", ie this adds lines of
code, be any useful whether deciding if this patch is good or not ? :)
This also adds a local variable, so more things to keep track of in our
limited brain while processing this code.
And potentially you could get into time of check/time of use races, ie
this check not triggering when it should.

For the record, I'm against doing this kind of changes unless there are
some profiling log showing this is causing a bottleneck.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]