Click here to Skip to main content
15,904,935 members
Home / Discussions / C#
   

C#

 
QuestionVERY BAD math?? Pin
Michael D Bray14-Feb-03 5:38
Michael D Bray14-Feb-03 5:38 
AnswerRe: VERY BAD math?? Pin
leppie14-Feb-03 6:01
leppie14-Feb-03 6:01 
GeneralRe: VERY BAD math?? Pin
Michael D Bray14-Feb-03 6:06
Michael D Bray14-Feb-03 6:06 
GeneralRe: VERY BAD math?? Pin
leppie14-Feb-03 6:12
leppie14-Feb-03 6:12 
GeneralRe: VERY BAD math?? Pin
Giles15-Feb-03 3:12
Giles15-Feb-03 3:12 
GeneralHelpProvider control question Pin
DionChen14-Feb-03 4:18
DionChen14-Feb-03 4:18 
GeneralRe: HelpProvider control question Pin
Amber Star16-Feb-03 7:29
Amber Star16-Feb-03 7:29 
QuestionHow I can Check keyboard buffer? Pin
nikulin_andrey14-Feb-03 4:15
nikulin_andrey14-Feb-03 4:15 
AnswerRe: How I can Check keyboard buffer? Pin
Heath Stewart14-Feb-03 11:03
protectorHeath Stewart14-Feb-03 11:03 
GeneralRe: How I can Check keyboard buffer? Pin
nikulin_andrey16-Feb-03 20:29
nikulin_andrey16-Feb-03 20:29 
GeneralRe: How I can Check keyboard buffer? Pin
Heath Stewart17-Feb-03 2:54
protectorHeath Stewart17-Feb-03 2:54 
AnswerRe: How I can Check keyboard buffer? Pin
scarecrow90019-Apr-11 6:25
scarecrow90019-Apr-11 6:25 
Generalmodal user control (Windows.Forms) Pin
Yann CK14-Feb-03 2:00
Yann CK14-Feb-03 2:00 
GeneralRe: modal user control (Windows.Forms) Pin
Heath Stewart14-Feb-03 11:09
protectorHeath Stewart14-Feb-03 11:09 
GeneralShow Snap Grid In Designer Mode of Internet Explorer Pin
gxuqin13-Feb-03 22:51
gxuqin13-Feb-03 22:51 
Questionhow can i convert all the text in a listbox to a string array Pin
jtmtv1813-Feb-03 17:15
jtmtv1813-Feb-03 17:15 
AnswerRe: how can i convert all the text in a listbox to a string array Pin
Furty13-Feb-03 18:52
Furty13-Feb-03 18:52 
GeneralRe: how can i convert all the text in a listbox to a string array Pin
Anonymous13-Feb-03 18:57
Anonymous13-Feb-03 18:57 
GeneralRe: how can i convert all the text in a listbox to a string array Pin
Furty13-Feb-03 19:03
Furty13-Feb-03 19:03 
Generaldvd reading Pin
ahf13-Feb-03 8:18
ahf13-Feb-03 8:18 
GeneralRe: dvd reading Pin
Daniel Turini13-Feb-03 8:33
Daniel Turini13-Feb-03 8:33 
GeneralRe: dvd reading Pin
ahf13-Feb-03 9:26
ahf13-Feb-03 9:26 
as I said, it does not do any processing it just times how long it takes to read the whole file. there's nothing inside the while.. so buffering doesn't help.
What I'm trying to say is that this C# code


FileStream f = new FileStream(fl,FileMode.Open, FileAccess.Read, FileShare.None,16384);
while (0!=f.Read(ba,0,16384))
{
//DO NOTHING JUST READ AGAIN
}

is much slower than this C (++) code

fh = _open( fname, _O_BINARY | _O_RDONLY )) == -1 )
while (!_read( fh, buffer, nbytes) <= 0 ){
//DO NOTHING JUST READ AGAIN
}

the question is.. why?
GeneralRe: dvd reading Pin
Furty13-Feb-03 10:17
Furty13-Feb-03 10:17 
GeneralRe: dvd reading Pin
ahf13-Feb-03 11:12
ahf13-Feb-03 11:12 
GeneralRe: dvd reading Pin
ahf13-Feb-03 11:26
ahf13-Feb-03 11: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.