Want to improve C # .Net application performance.
In my application, I use third-party Interop / Dll to process .doc files.
This is a simple operation, Which Pass Input / Output FilePath for Interop dll ... & dll will execute the input text form file.
To improve performance, I tried,
- Run 2 therad to process 32 files. (each file of the Thread process).
- Run the application code by creating 2 new AppDomains (each of the 16 files of the AppDomain Code process)
- Code Execution Using TPL (Task Parellel Library)
But all the parameters take about the same time (32 seconds) to process 32 files. The process was manually processed for 32 seconds to process 32 files.
Just tried one thing. When I created an exe sample to process 16 files as input and output for the reference path specified in the TextBox.
.. I open instance 2 exe for processing. 1 exe has different 16 input files and output. Created with an input file path 2 exe has different 16 input files and an output. Created from the path of the input file.
When I click the "Start" button for both exe..it uses 100% processor and efficiently use both cores, and the process is completed in 16 seconds for 32 files.
Can we provide such explicit prallism to improve my Peformance application?
source
share