Re: [python-win32] Python win32Com Server DLL

2017-02-19 Thread Denis Akhiyarov
.NET uses RCW to cache calls into COM. I once used pythonnet to call into COM from Python using .NET COM interop. But this is not ready for general use due to the amount of boilerplate code necessary to make the calls. See this issue for more details. https://github.com/pythonnet/pythonnet/issues/

Re: [python-win32] Python win32Com Server DLL

2017-02-19 Thread Stephen Chapman
I thought that might be the answer. Thank you On Feb 17, 2017 4:53 PM, "Tim Roberts" wrote: > Stephen Chapman wrote: > > > >Since it was a simple example I was only passing a single int for a > > parameter and returning 0. As far as I know COM servers don't cache > > responses I have never

Re: [python-win32] Python win32Com Server DLL

2017-02-17 Thread Tim Roberts
Stephen Chapman wrote: > >Since it was a simple example I was only passing a single int for a > parameter and returning 0. As far as I know COM servers don't cache > responses I have never seen that happen anyway. That's not what I said. There are two parts to a late-dispatch COM call: find

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Stephen Chapman
Tim, Since it was a simple example I was only passing a single int for a parameter and returning 0. As far as I know COM servers don't cache responses I have never seen that happen anyway. As well I'm running on an i7 3.2ghz machine so my results could be faster than most. However the quest

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Denis Akhiyarov
I would be curious to see your c# code, I support Tim on unrealistic timing. This kind of questions are good for Stackoverflow. On Thu, Feb 16, 2017, 6:50 PM Tim Roberts wrote: > Stephen Chapman wrote: > > So after much research on the library . It certainly looks like the > > invoke method is

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Tim Roberts
Stephen Chapman wrote: > So after much research on the library . It certainly looks like the > invoke method is taking all the time. Is this because of the > conversion from Variant??? > > On Tue, Feb 7, 2017 at 11:09 AM, Stephen Chapman > mailto:schapman1...@gmail.com>> wrote: > > Hello, >

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Stephen Chapman
So after much research on the library . It certainly looks like the invoke method is taking all the time. Is this because of the conversion from Variant??? On Tue, Feb 7, 2017 at 11:09 AM, Stephen Chapman wrote: > Hello, >I am having a speed issue while running dll functions. I have a > m

[python-win32] Python win32Com Server DLL

2017-02-07 Thread Stephen Chapman
Hello, I am having a speed issue while running dll functions. I have a minimal com server example and a minimal com client example below. I have added cProfile to the example. All source files and the profile are attached. So when I run this example I get between 1.4 seconds to 1.7 second