Click here to Skip to main content
15,915,501 members
Home / Discussions / C#
   

C#

 
QuestionReferencing form from user control Pin
Dave Hurt1-Dec-05 10:58
Dave Hurt1-Dec-05 10:58 
AnswerRe: Referencing form from user control Pin
Joshua Quick1-Dec-05 12:02
Joshua Quick1-Dec-05 12:02 
GeneralRe: Referencing form from user control Pin
Dave Hurt2-Dec-05 3:49
Dave Hurt2-Dec-05 3:49 
GeneralRe: Referencing form from user control Pin
Joshua Quick2-Dec-05 7:29
Joshua Quick2-Dec-05 7:29 
QuestionFiguring out Installation Location Pin
timothymfox1-Dec-05 10:22
timothymfox1-Dec-05 10:22 
AnswerRe: Figuring out Installation Location Pin
Jared Parsons1-Dec-05 10:31
Jared Parsons1-Dec-05 10:31 
Questiontrouble in loading large xml file Pin
zhujp981-Dec-05 8:18
zhujp981-Dec-05 8:18 
AnswerRe: trouble in loading large xml file Pin
Rob Philpott1-Dec-05 9:10
Rob Philpott1-Dec-05 9:10 
There is.

The trouble with this approach is that you are loading the whole file into an XmlDocument, which keeps the whole thing in memory. You are then parsing this memory copy using a forward only reader.

Where possible, its better to stream the Xml in using XmlTextReader, this also is a forward only reader, but by using this you only deal with a tiny chunk of the whole document at a time. This is much prefered server-side as if you have multiple threads in your server each loading large xml documents in you could end up with a stressed server. This solution is far more scalable.






Regards,
Rob Philpott.
QuestionTips for creating a custom message inbox Pin
mihansen1-Dec-05 7:45
mihansen1-Dec-05 7:45 
QuestionSleep or Wait functions in ASP.NET Pin
TheMajorRager1-Dec-05 7:02
TheMajorRager1-Dec-05 7:02 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Jared Parsons1-Dec-05 7:46
Jared Parsons1-Dec-05 7:46 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Colin Angus Mackay1-Dec-05 8:28
Colin Angus Mackay1-Dec-05 8:28 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Dave Kreskowiak1-Dec-05 10:54
mveDave Kreskowiak1-Dec-05 10:54 
AnswerRe: Sleep or Wait functions in ASP.NET Pin
Reanalyse1-Dec-05 11:43
Reanalyse1-Dec-05 11:43 
QuestionHow to add Event and Delegates to UserControls? Pin
2hdass1-Dec-05 6:41
2hdass1-Dec-05 6:41 
AnswerRe: How to add Event and Delegates to UserControls? Pin
Sean Michael Murphy2-Dec-05 9:41
Sean Michael Murphy2-Dec-05 9:41 
QuestionExtracting keys and values from SortedList Pin
smurfy341-Dec-05 5:47
smurfy341-Dec-05 5:47 
AnswerRe: Extracting keys and values from SortedList Pin
Alessandro Febretti1-Dec-05 10:43
Alessandro Febretti1-Dec-05 10:43 
GeneralRe: Extracting keys and values from SortedList Pin
smurfy342-Dec-05 3:01
smurfy342-Dec-05 3:01 
QuestionHow do I create a Custom DashStyle?? Pin
...---...1-Dec-05 5:03
...---...1-Dec-05 5:03 
Questiondefault email client Pin
ppp0011-Dec-05 4:47
ppp0011-Dec-05 4:47 
AnswerRe: default email client Pin
Curtis Schlak.1-Dec-05 14:47
Curtis Schlak.1-Dec-05 14:47 
QuestionGroups in Active Directory Pin
zaboboa1-Dec-05 4:06
zaboboa1-Dec-05 4:06 
AnswerRe: Groups in Active Directory Pin
Jared Parsons1-Dec-05 7:53
Jared Parsons1-Dec-05 7:53 
QuestionMultithreading Question Pin
akyriako781-Dec-05 2:09
akyriako781-Dec-05 2:09 

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.