Excel-DNA / ExcelDna

Excel-DNA - Free and easy .NET for Excel. This repository contains the core Excel-DNA library.
https://excel-dna.net
zlib License
1.26k stars 272 forks source link

Performance issue about ExcelDna in Excel 365 #281

Open uyuyliu831 opened 4 years ago

uyuyliu831 commented 4 years ago

Hi:

We are migrating our Excel Add-in created by ExcelDNA and VB.net from a windows 7 / Excel 2010 32 bit version to a windows 10 / Excel 365 64 bit version.

Everything works fine except that all the modules from the new environment tend to run slower than the old environment. For example, there's one module used to take 35 second to run through under old environment now takes about 1 mins and 5 seconds.

So far I am not able to locate where the slowness comes from.

Checking if anyone has similar experiences on this. Would love to get some ideas.

augustoproiete commented 4 years ago

@uyuyliu831 That's an interesting observation that I haven't experienced myself. Maybe you could start by using a .NET profiler such as dotTrace or ANTS and see if you can find any bottlenecks which might give you some clues about why it's slower (?)

govert commented 4 years ago

There were quite a few performance-related issues in the Excel 2010 -> Excel 2013 time frame, and I think you'll find some COM interop scenarios became much slower.