e of upsetting some COM objects - eg, when `foo.bar` is seen,
> EnsureDispatch knows for sure that `bar` is a method, but dynamic dispatch
> doesn't know if the resulting object is going to be called or not.
>
> HTH,
>
> Mark
> On 2024-04-17 2:07 a.m., Sven Bardos via pytho
Hi,
shouldn't be EnsureDispatch be faster than Dispatch once the code
generation is done?
I've measured it by calling 6000 COM calls like this:
dirpath = Path('C:/Users/sbardos/AppData/Local/Temp/gen_py/3.10/')
if dirpath.exists() and dirpath.is_dir():
shutil.rmtree(dirpath)
app = Dispatch(