The key advantage of exceldna for performance is that you can use multithreading within your code – no way to do so in VBA. So if you could use something like Parallel.For you would see the results dramatically
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at http://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
Sadly, multithreading does not help when talking to Excel from a macro.
If most of your macro is spent talking to Excel via the COM interfaces, performance with Excel-DNA should be similar to VBA.
-Govert
From: exce...@googlegroups.com [mailto:exce...@googlegroups.com]
On Behalf Of Marco Born
Sent: 22 April 2014 14:19
To: exce...@googlegroups.com
Subject: [ExcelDna] Re: Question about speed and performance
Thanks, Jiri. In both versions I have activated Multhithreading calculation in the options but I don't use it in my macros. I need to runs the code line by line as later commandos need the results of earlier commandos so Multhithreading will not work in my case.
--
Parallel.For(SheetpointersStart, (SheetPointersEnd + 1), i =>
{WriteValues wv = new
WriteValues();