<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 8: Use of Win32Com Cache</title><link href="https://sourceforge.net/p/adodbapi/feature-requests/8/" rel="alternate"/><link href="https://sourceforge.net/p/adodbapi/feature-requests/8/feed.atom" rel="self"/><id>https://sourceforge.net/p/adodbapi/feature-requests/8/</id><updated>2014-07-14T17:45:12.597000Z</updated><subtitle>Recent changes to 8: Use of Win32Com Cache</subtitle><entry><title>Use of Win32Com Cache</title><link href="https://sourceforge.net/p/adodbapi/feature-requests/8/" rel="alternate"/><published>2014-07-14T17:45:12.597000Z</published><updated>2014-07-14T17:45:12.597000Z</updated><author><name>George</name><uri>https://sourceforge.net/u/georgeukrr/</uri></author><id>https://sourceforge.netcd8b02febe69afecb360f1c4e113fa93dcba587d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Could there be a way to specify that you want to use EnsureDispatch (and hence pre-build the Com scripts)?&lt;/p&gt;
&lt;p&gt;I've modified adodbapi.py to...&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="n"&gt;def&lt;/span&gt; &lt;span class="n"&gt;Dispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;win32com&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gencache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;is_readonly&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;False&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;win32com&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gencache&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;EnsureDispatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dispatch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>