Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Grimolfr21-May-04 3:57
Grimolfr21-May-04 3:57 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:24
protectorHeath Stewart21-May-04 4:24 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:36
mveDave Kreskowiak21-May-04 4:36 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Heath Stewart21-May-04 4:42
protectorHeath Stewart21-May-04 4:42 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:44
mveDave Kreskowiak21-May-04 4:44 
GeneralRe: Cannot Call Invoke or InvokeAsync Pin
Dave Kreskowiak21-May-04 4:43
mveDave Kreskowiak21-May-04 4:43 
Generalbest pratice Pin
the last free name21-May-04 1:25
the last free name21-May-04 1:25 
GeneralRe: best pratice Pin
Dave Kreskowiak21-May-04 3:18
mveDave Kreskowiak21-May-04 3:18 
If your only going to be using a single instance processor, why read ahead of it? You're not gaining any real performance benefit because of the single threaded nature of your design. One thread is constantly waiting for another to complete it's work. The FileStream classes already do read/write caching on their own, so why duplicate its effort?

If you could use a multiple instance processor, instead of a single, THEN you'd see the performance gain. Also, your reader object shouldn't be reading the files itself. Your design should have an engine that hunts down files, then passes the filename to a threaded instance of the processor. That way, the processor thread is doing the reading and processing of the file while your engine goes on it's merry way to launch another processor on the next file. The thread pool could be used for such a task. That way, you wouldn't have to include very much code to do thread management.

I only say this because I did something similar to this a few years ago. But in my case, the database made sure I wasn't duplicating data, not my processor objects.


RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: best pratice Pin
the last free name21-May-04 4:34
the last free name21-May-04 4:34 
GeneralMSDN Pin
sreejith ss nair21-May-04 1:22
sreejith ss nair21-May-04 1:22 
GeneralRe: MSDN Pin
CWIZO21-May-04 2:10
CWIZO21-May-04 2:10 
GeneralRe: MSDN Pin
sreejith ss nair21-May-04 2:28
sreejith ss nair21-May-04 2:28 
GeneralRe: MSDN Pin
Aryadip21-May-04 2:42
Aryadip21-May-04 2:42 
GeneralRe: MSDN Pin
sreejith ss nair21-May-04 2:54
sreejith ss nair21-May-04 2:54 
GeneralRe: MSDN Pin
Dave Kreskowiak21-May-04 3:01
mveDave Kreskowiak21-May-04 3:01 
GeneralRe: MSDN Pin
Grimolfr21-May-04 4:05
Grimolfr21-May-04 4:05 
GeneralRe: MSDN Pin
Heath Stewart21-May-04 4:18
protectorHeath Stewart21-May-04 4:18 
GeneralOdd threads Pin
Christer Claesson21-May-04 1:20
Christer Claesson21-May-04 1:20 
GeneralRe: Odd threads Pin
Dave Kreskowiak21-May-04 2:59
mveDave Kreskowiak21-May-04 2:59 
GeneralYeah Pin
Christer Claesson21-May-04 3:05
Christer Claesson21-May-04 3:05 
GeneralExtremely odd freak incident. Pin
Christer Claesson21-May-04 3:02
Christer Claesson21-May-04 3:02 
GeneralRe: Extremely odd freak incident. Pin
Dave Kreskowiak21-May-04 3:04
mveDave Kreskowiak21-May-04 3:04 
GeneralRe: Extremely odd freak incident. Pin
Christer Claesson21-May-04 3:09
Christer Claesson21-May-04 3:09 
GeneralRe: Extremely odd freak incident. Pin
Dave Kreskowiak21-May-04 3:55
mveDave Kreskowiak21-May-04 3:55 
GeneralSolved it! Pin
Christer Claesson21-May-04 4:49
Christer Claesson21-May-04 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.