Menu

#8 Use of Win32Com Cache

open
nobody
None
5
2014-07-14
2014-07-14
George
No

Could there be a way to specify that you want to use EnsureDispatch (and hence pre-build the Com scripts)?

I've modified adodbapi.py to...

    def Dispatch(dispatch):
        win32com.client.gencache.is_readonly = False
        return win32com.client.gencache.EnsureDispatch(dispatch)

And this has resolved problems I was having with dynamic.py from win32com taking up a lot of resources. The program I'm building uses thousands of short queries so the overhead really adds up.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.