[patch] remove DBusGPendingCall
halfline at gmail.com
Wed Jul 6 10:42:33 PDT 2005
> I do return an opaque pointer; the client code never knows it doesn't
> point to allocated memory. This way there's no need to define a
> structure, allocate it, etc. Converting the DBusGProxyCall * pointer
> into a guint will be a very cheap operation, just a few processor cycles
> at most I imagine if any. If we get to that level of optimization I
> will be very happy :)
You're using the index as a key into a hash table to retrieve a
pointer, yea? I guess my point is, why have the hash table at all?
Why not just return the pointer in the first place? What's the
advantage of the extra layer of indirection?
More information about the dbus