I am using SWT OLE Automation to export the UML diagrams drawn on Eclipse editor to visio.

But it takes a lot of time to export when there are a number of shapes to be exported.

Previously this work was done by making native calls to DLL's through a Java Program whose DLL code was written in VC++ which was much faster and exported the diagrams to visio in a very short interval of time.

I want to know whether SWT Ole Automation is slower than making native calls to dll?