Click here to Skip to main content
15,888,610 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralTime out with HttpWebRequest Pin
Manjunath N.A14-Dec-04 23:20
Manjunath N.A14-Dec-04 23:20 
GeneralIE Hosting problem Pin
Ryszard Krakowiak14-Dec-04 20:58
Ryszard Krakowiak14-Dec-04 20:58 
QuestionWhich registry values are updated when Windows XP Service Pack (1/2) is installed? Pin
mmsspp14-Dec-04 19:40
mmsspp14-Dec-04 19:40 
AnswerRe: Which registry values are updated when Windows XP Service Pack (1/2) is installed? Pin
Mike Dimmick17-Dec-04 13:19
Mike Dimmick17-Dec-04 13:19 
GeneralConsole Application Pin
har04mich14-Dec-04 11:19
har04mich14-Dec-04 11:19 
GeneralRe: Console Application Pin
Mike Dimmick17-Dec-04 13:27
Mike Dimmick17-Dec-04 13:27 
Generalfile processing time Pin
shaw12314-Dec-04 8:50
shaw12314-Dec-04 8:50 
GeneralRe: file processing time Pin
Mike Dimmick17-Dec-04 13:58
Mike Dimmick17-Dec-04 13:58 
Presumably on the first run none of the file was in cache. However, on the second run, the file was now cached, so reading the file was much faster as the data was already in memory, it didn't need to be read from disk.

When implementing file I/O, you should try to keep locality of reference: process a whole 'page' (4KB) at a time, rather than skipping all over the file. Every time you 'hit' a new page Windows has to read it from the disk into the cache. Windows does try to predict how you're going to use the file in future based on your previous accesses, and it does read ahead, but the fact remains that disks are slow - you should use files carefully. If you do need to jump all over a data structure you could consider reading the whole file sequentially into memory, but if it's a big file you could end up just swapping it straight out to disk again, if you don't have enough physical memory for the whole file.

If you were simply reading the file from beginning to end, some other process was probably using the disk heavily at the same time.

Stability. What an interesting concept. -- Chris Maunder
GeneralIs it possible: start .Net executable by GUID Pin
nielsvdc14-Dec-04 4:40
nielsvdc14-Dec-04 4:40 
GeneralRe: Is it possible: start .Net executable by GUID Pin
devvvy14-Dec-04 5:53
devvvy14-Dec-04 5:53 
GeneralRe: Is it possible: start .Net executable by GUID Pin
nielsvdc14-Dec-04 10:10
nielsvdc14-Dec-04 10:10 
Generalexception in switching between panels Pin
Vinsent13-Dec-04 22:46
Vinsent13-Dec-04 22:46 
GeneralRe: exception in switching between panels Pin
The Man from U.N.C.L.E.14-Dec-04 4:35
The Man from U.N.C.L.E.14-Dec-04 4:35 
GeneralRe: exception in switching between panels Pin
Vinsent15-Dec-04 16:28
Vinsent15-Dec-04 16:28 
GeneralRe: exception in switching between panels Pin
The Man from U.N.C.L.E.15-Dec-04 22:29
The Man from U.N.C.L.E.15-Dec-04 22:29 
Generalerror on minimize Pin
Member 134908813-Dec-04 6:06
Member 134908813-Dec-04 6:06 
QuestionIS THIS A PATCH IN DATETIME CONTROL? Pin
manivannan.p13-Dec-04 1:29
manivannan.p13-Dec-04 1:29 
GeneralListView BackgroundImage property Pin
flip_trickle12-Dec-04 12:10
flip_trickle12-Dec-04 12:10 
QuestionHow to invoke a MouseEvent from a KeyBoard Event handler? Pin
manivannan.p12-Dec-04 6:27
manivannan.p12-Dec-04 6:27 
Questionhow do i create webmenu using .net Pin
karthikaprabhakar12-Dec-04 4:39
karthikaprabhakar12-Dec-04 4:39 
AnswerRe: how do i create webmenu using .net Pin
Steve Maier14-Dec-04 4:17
professionalSteve Maier14-Dec-04 4:17 
GeneralChanging datasource of a datagrid in runtime with allowpaging property = true Pin
Eng Nashwa10-Dec-04 22:30
Eng Nashwa10-Dec-04 22:30 
GeneralRetrieving Icons Embedded in Assemblies Pin
bneacetp10-Dec-04 9:22
bneacetp10-Dec-04 9:22 
GeneralRe: Retrieving Icons Embedded in Assemblies Pin
The Man from U.N.C.L.E.14-Dec-04 4:57
The Man from U.N.C.L.E.14-Dec-04 4:57 
GeneralRe: Retrieving Icons Embedded in Assemblies Pin
bneacetp17-Dec-04 9:00
bneacetp17-Dec-04 9:00 

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.