Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,086 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,775 people online right now. Registration is fast and FREE... Join Now!




Multi-threading File Loading

 
Reply to this topicStart new topic

Multi-threading File Loading

scalt
4 Jun, 2008 - 03:30 PM
Post #1

D.I.C Head
Group Icon

Joined: 22 Nov, 2007
Posts: 114



Thanked: 3 times
Dream Kudos: 25
My Contributions
I have a program which summarises large Exel files (up to 150mb) in batches from anywhere 5 to 150 files. The major bottleneck for this is the time it takes to load in each file, so I am considering incorporating some multi-threading to start this whilst the user is screwing around in the GUI choosing summarisation options. My question is, would it be better to load several files at the same time or several files in succession? One of the major bottlenecking issues is that several users use network drives to store their files so is it worth loading a few at the same time, or is that pointless seeing only so much bandwidth is available (at the moment loading one file in at a time uses about 80% of the bandwidth). I am aware of the memory issues that could arise with this approach and will only grab the parts of the file I need and put them into an array before closing the file. In addition I would only keep a few file arrays in memory at any time.

Any suggestions would be great.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:49PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month