Want to Improvide Performance of C#.Net Application..
In my application I am using Third Party Interop/Dll To Process .doc Files.
It's a Simple Operation, Which Pass Input/Output FilePath to Interop dll ...& dll will execute text form input file.
To improve performance I have tried,
- Execute 2 therad to process 32 files.(each Thread process 16 files)
- Execute application code by creating 2 new AppDomains(each AppDomain Code process 16 files)
- Execute Code Using TPL(Task Parellel Library)
But all options take around same time (32 sec) to process 32 files. Manually process tooks same 32 sec to process 32 files.
Just tried one thing ..when I have created sample exe to process 16 files as input & output for reference Path given in TextBox.
..I open 2 exe instance to process. 1 exe has different 16 input files & output Created with input file path 2 exe has different 16 input files & output Created with input file path
When i click on start button of both exe ..it use 100% cpu & Utilize both core significantly & Process Completed within 16 sec for 32 files.
Can we provide this kind of explicit prallism to improve my application Peformance?