Menu

#16 Minor Client Speedup

open
nobody
com (8)
5
2003-11-17
2003-11-17
Giles Brown
No

In CDispatch._ApplyTypes_ (win32com.client.dispatch)
i get a small (but worthwhile) speed improvement if I
replace (during lots of ADO recordset operations):

result = self._oleobj_.InvokeTypes(*(dispid, LCID,
wFlags, retType, argTypes) + args)

With:

result = self._oleobj_.InvokeTypes(dispid, LCID, wFlags,
retType, argTypes, *args)

I think they are functionally equivalent.

Sorry I haven't worked out how to create this as a
patch.

Cheers,
Giles

Discussion


Log in to post a comment.