Solved

How to reduce the processing time of a C# application that merges tif image files using VS2010 with .Net Framework 4.0 ?

Posted on 2016-09-12
6
42 Views
Last Modified: 2016-09-16
I am developing a C# application using VS2010 and .Net Framework 4.0

I have attached my C# code.

Basically I am reading a directory that has over 10,000 check images.
For each check, there are 2 check image files (front side of check and back side of check):   XXX represents the filename.  
XXX._Front.TIF
XXX._Rear.TIF

I have a function named "ProcessDirectory" that retrieves each check's file name and then calls a function titled "ProcessImage"
which merges the front check image file and back check image file into 1 check image file per check that shows the front check image on the top and the back check image on the bottom of the merged file.

This executable takes over 90 minutes to run. Can you think of a way to reduce the processing time by modifying the code?
0
Comment
Question by:zimmer9
6 Comments
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 41795095
What code?
0
 

Author Comment

by:zimmer9
ID: 41795100
0
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 41795239
90 minutes per image or 90 minutes to process 10K images? Have you profiled your code to see where it is bogging down? What are your disk queue's like? How many iops do you have available? (read/write to an SSD might help). What is your cpu percentage?  Lots of free memory?
Why still using VS2010?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:zimmer9
ID: 41795243
90 minutes to process the 10K images.
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 41795391
Have you profiled your code to see where the most time is being spent?
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 41802356
Also have you tried to go multithreaded?

eg:
get a distinct list of the check images
then pass to a thread to with the file name to do the actual processing.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now