Re: [PATCHv2 1/9] maint: use lighter-weight function for straight appends

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

 



2011/4/14 Eric Blake <eblake@xxxxxxxxxx>:
> It costs quite a few processor cycles to go through printf parsing
> just to determine that we only meant to append.

> - Â Â Â ÂvirBufferVSprintf(&buf, "%s", k);
> - Â Â Â ÂvirBufferVSprintf(&buf, "%s", "=");
> - Â Â Â ÂvirBufferVSprintf(&buf, "%s", v);
> + Â Â Â ÂvirBufferVSprintf(&buf, "%s=%s", k, v);

Nice one :)

ACK.

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]