[libvirt] PATCH: 22/28: Refactor libvirtd RPC call dispatcher

Daniel Veillard veillard at redhat.com
Wed Dec 3 14:28:01 UTC 2008


On Mon, Dec 01, 2008 at 12:13:00AM +0000, Daniel P. Berrange wrote:
> 
> This refactors the libvirtd RPC call dispatcher code to be driven off a
> table lookup, rather than a giant switch. This dramatically reduces the
> stack usage of this dispatcher and makes the code more efficient, since
> GCC wasn't optimizing away the switch into a table lookup.
> 
> There's not been any change since last time i posted this really.

  +1 it's mostly unreadable anyway :-)

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list