Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: IIsWebServer method calling problem Pin
itismydick10-Nov-03 21:47
itismydick10-Nov-03 21:47 
GeneralData Link Property Pin
Inam9-Nov-03 13:57
Inam9-Nov-03 13:57 
GeneralRe: Data Link Property Pin
BinhTran9-Nov-03 17:57
BinhTran9-Nov-03 17:57 
GeneralRe: Data Link Property Pin
BinhTran9-Nov-03 17:58
BinhTran9-Nov-03 17:58 
GeneralRe: Data Link Property Pin
Husein22-Nov-03 0:21
Husein22-Nov-03 0:21 
QuestionHow can I overdraw the titlebar? Pin
icysky9-Nov-03 13:44
icysky9-Nov-03 13:44 
QuestionWhen exactly should a StringBuilder be used? Pin
gicio9-Nov-03 10:48
gicio9-Nov-03 10:48 
AnswerRe: When exactly should a StringBuilder be used? Pin
J. Dunlap9-Nov-03 11:11
J. Dunlap9-Nov-03 11:11 
StringBuilders should be used where you need to concatenate lots of strings together. The StringBuilder allocates a chunk of memory bigger than the size of the actual string, and copies the new strings into the extra space at the end. This way, you aren't repeatedly re-allocating the memory and copying both the old and the new string into it.

I've found that the StringBuilder takes at least 30x less time than it would take without it. My benchmark test involved loading a rich text file with a picture in it line-by-line. Without the StringBuilder, it took 3 minutes; with the StringBuilder, it took 35ms.

"But the fruit of the Spirit is love, joy, peace, patience, kindness, goodness..." -- Galatians 5:22-23a

FLUID UI Toolkit | FloodFill in C# & GDI+







AnswerRe: When exactly should a StringBuilder be used? Pin
Nick Parker9-Nov-03 11:17
protectorNick Parker9-Nov-03 11:17 
AnswerRe: When exactly should a StringBuilder be used? Pin
Colin Angus Mackay9-Nov-03 13:59
Colin Angus Mackay9-Nov-03 13:59 
Generalone simple way to look at it Pin
CillyMe10-Nov-03 5:49
CillyMe10-Nov-03 5:49 
AnswerRe: When exactly should a StringBuilder be used? Pin
LongRange.Shooter10-Nov-03 6:17
LongRange.Shooter10-Nov-03 6:17 
Generaltemp monitor from motherboard Pin
Rob Tomson9-Nov-03 9:38
Rob Tomson9-Nov-03 9:38 
GeneralRe: temp monitor from motherboard Pin
Nick Parker9-Nov-03 10:21
protectorNick Parker9-Nov-03 10:21 
GeneralRe: temp monitor from motherboard Pin
Rob Tomson10-Nov-03 4:07
Rob Tomson10-Nov-03 4:07 
GeneralDataAccess Control Pin
Inam9-Nov-03 7:38
Inam9-Nov-03 7:38 
GeneralAdding value to registry... Pin
Amirjalaly9-Nov-03 6:38
Amirjalaly9-Nov-03 6:38 
GeneralRe: Adding value to registry... Pin
Corinna John9-Nov-03 8:05
Corinna John9-Nov-03 8:05 
GeneralRe: Adding value to registry... Pin
Anonymous10-Nov-03 2:50
Anonymous10-Nov-03 2:50 
GeneralRe: Adding value to registry... Pin
Corinna John10-Nov-03 3:01
Corinna John10-Nov-03 3:01 
GeneralRe: Adding value to registry... Pin
Braulio Dez9-Nov-03 21:44
Braulio Dez9-Nov-03 21:44 
GeneralRe: Adding value to registry... Pin
Alvaro Mendez10-Nov-03 8:43
Alvaro Mendez10-Nov-03 8:43 
QuestionWhat book do i need? Pin
eggie59-Nov-03 6:02
eggie59-Nov-03 6:02 
AnswerRe: What book do i need? Pin
eggie59-Nov-03 6:10
eggie59-Nov-03 6:10 
AnswerRe: What book do i need? Pin
Nick Parker9-Nov-03 6:19
protectorNick Parker9-Nov-03 6:19 

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.