Click here to Skip to main content
15,920,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: What event fired?? Pin
Janu_M20-Mar-07 20:25
Janu_M20-Mar-07 20:25 
AnswerRe: What event fired?? Pin
AB777119-Mar-07 22:22
AB777119-Mar-07 22:22 
GeneralRe: What event fired?? Pin
Janu_M20-Mar-07 20:26
Janu_M20-Mar-07 20:26 
Questionsaving file into sql database Pin
dabuskol19-Mar-07 21:39
dabuskol19-Mar-07 21:39 
AnswerRe: saving file into sql database Pin
joon vh.19-Mar-07 22:48
joon vh.19-Mar-07 22:48 
QuestionMSBuild Question Pin
Member 390685019-Mar-07 20:53
Member 390685019-Mar-07 20:53 
QuestionFastest way to write a text file Pin
blackjack215019-Mar-07 20:51
blackjack215019-Mar-07 20:51 
AnswerRe: Fastest way to write a text file Pin
Russell Jones19-Mar-07 22:08
Russell Jones19-Mar-07 22:08 
blackjack2150 wrote:

And another related question. It helps in terms of performance to write as much data as possible at a time, doesn't it?


kind of depends what you mean by performance. but often yes.

1. The user starts the file save procedure and starts looking at email. The PC will look faster if your process is slightly less fast so smaller packets that don't block the disk queue might help.

2. The hard disk has issues. The program continually tries to write and fails. Because your packets are huge it fails more often as it's hard to find unbroken space that big and it has to attempt each write many times. (This would more likely be a problem on a network share for instance).

3. The hard disk is fast, is 0% fragmented and there's more ram and CPU power in the box than you could shake a stick at. This machine isn't going to slow down for anything so you might as well max the packet size and get the job done fast.

Do you need this file save to complete before the user continues? If not i would suggest sticking the save process in a background thread and maybe put a progress bar in the UI.

Russ
GeneralRe: Fastest way to write a text file Pin
blackjack215019-Mar-07 22:33
blackjack215019-Mar-07 22:33 
GeneralRe: Fastest way to write a text file Pin
m@u19-Mar-07 23:18
m@u19-Mar-07 23:18 
GeneralRe: Fastest way to write a text file Pin
PIEBALDconsult23-Feb-10 10:46
mvePIEBALDconsult23-Feb-10 10:46 
AnswerRe: Fastest way to write a text file Pin
joon vh.19-Mar-07 22:22
joon vh.19-Mar-07 22:22 
AnswerRe: Fastest way to write a text file Pin
Guffa19-Mar-07 22:30
Guffa19-Mar-07 22:30 
GeneralRe: Fastest way to write a text file Pin
joon vh.19-Mar-07 23:49
joon vh.19-Mar-07 23:49 
GeneralRe: Fastest way to write a text file Pin
Guffa20-Mar-07 2:10
Guffa20-Mar-07 2:10 
GeneralRe: Fastest way to write a text file Pin
joon vh.20-Mar-07 2:50
joon vh.20-Mar-07 2:50 
QuestionPlacing RadioButton in Nodes of TreeView Pin
SakthiSurya19-Mar-07 20:42
SakthiSurya19-Mar-07 20:42 
AnswerRe: Placing RadioButton in Nodes of TreeView Pin
stancrm19-Mar-07 21:03
stancrm19-Mar-07 21:03 
Questiondatagrid with checkbox for pocket pc 2003 Pin
mohdmeraj19-Mar-07 20:17
mohdmeraj19-Mar-07 20:17 
Questionhow to get create query of msaccess table through c# Pin
joerozario19-Mar-07 19:18
joerozario19-Mar-07 19:18 
AnswerRe: how to get create query of msaccess table through c# Pin
sujithkumarsl19-Mar-07 19:59
sujithkumarsl19-Mar-07 19:59 
GeneralRe: how to get create query of msaccess table through c# Pin
joerozario19-Mar-07 20:21
joerozario19-Mar-07 20:21 
GeneralRe: how to get create query of msaccess table through c# Pin
sujithkumarsl19-Mar-07 20:34
sujithkumarsl19-Mar-07 20:34 
GeneralRe: I want to get the create query of existing table Pin
joerozario19-Mar-07 21:10
joerozario19-Mar-07 21:10 
GeneralRe: I want to get the create query of existing table Pin
joerozario19-Mar-07 21:26
joerozario19-Mar-07 21:26 

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.