Calling a SW Addin from Exe-File

Hello,

I've written a SW-AddIn in VB.Net, which makes any calculationsfrom assemblies and parts.
My DLL has many functions, they do not need SolidWorks and a fewfunctions, where I need informations from SW (calculations, etc.)

So, I decide to rewrite my AddIn to a standalone .Net-Exe andconnect it at start-time to SW to get my informations. But now, thecalculations takes a extreme long time. For the same calculations,where the DLL needs milliseconds, needs the Exe-Module MINUTES.It's crazy

Can I do any changes to improve the performance for an outstandingVB.Net-Exe-File?
Or another question. Is it possible to implement a DLL inSolidWorks, which makes my calculations (in milliseconds) and callthis DLL from a Exe-Modul? And when it is possible, how can I dothis?

Thanks for any help.

Best regards,
JuergenSolidworksApi macros