Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: Replace two table's items with eachother in SQL Pin
Dan Mos21-Mar-10 5:26
Dan Mos21-Mar-10 5:26 
GeneralRe: Replace two table's items with eachother in SQL Pin
teknolog12322-Mar-10 2:46
teknolog12322-Mar-10 2:46 
QuestionWhy it doesn't eat SYSTEM MEMORY???? Pin
Nick Reshetinsky16-Mar-10 7:00
Nick Reshetinsky16-Mar-10 7:00 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
OriginalGriff16-Mar-10 7:23
mveOriginalGriff16-Mar-10 7:23 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 7:25
sitebuilderLuc Pattyn16-Mar-10 7:25 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Dave Kreskowiak16-Mar-10 8:06
mveDave Kreskowiak16-Mar-10 8:06 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 9:17
protectorAspDotNetDev16-Mar-10 9:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 9:23
sitebuilderLuc Pattyn16-Mar-10 9:23 
strings get interned only if:
- they are literals, so the compiler interns them;
- the app explicitly calls string.Intern()

when they don't get interned, they don't get compared against each other either, so "you may only be generating a few unique strings" isn't really relevant; his code is generating millions of strings. And they get collected.

This[^] describes a string interning experiment showing it pays off when lots of compares are needed in a set with high multiplicity.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.

GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 10:17
protectorAspDotNetDev16-Mar-10 10:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 10:27
sitebuilderLuc Pattyn16-Mar-10 10:27 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 11:29
protectorAspDotNetDev16-Mar-10 11:29 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 11:38
sitebuilderLuc Pattyn16-Mar-10 11:38 
Questionc# picture grid and pixel Pin
antrock10116-Mar-10 6:32
antrock10116-Mar-10 6:32 
AnswerRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 6:44
sitebuilderLuc Pattyn16-Mar-10 6:44 
GeneralRe: c# picture grid and pixel Pin
antrock10116-Mar-10 7:45
antrock10116-Mar-10 7:45 
GeneralRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 7:52
sitebuilderLuc Pattyn16-Mar-10 7:52 
GeneralRe: c# picture grid and pixel Pin
antrock10116-Mar-10 11:52
antrock10116-Mar-10 11:52 
GeneralRe: c# picture grid and pixel Pin
Luc Pattyn16-Mar-10 12:06
sitebuilderLuc Pattyn16-Mar-10 12:06 
AnswerRe: c# picture grid and pixel Pin
Keith Barrow16-Mar-10 6:47
professionalKeith Barrow16-Mar-10 6:47 
Question[SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 4:34
blackblizzard16-Mar-10 4:34 
AnswerRe: Is reference comparison atomic? Pin
Daniel Grunwald16-Mar-10 4:54
Daniel Grunwald16-Mar-10 4:54 
GeneralRe: Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:00
blackblizzard16-Mar-10 5:00 
AnswerRe: [SOLVED] Is reference comparison atomic? Pin
Sandeep Mewara16-Mar-10 5:03
mveSandeep Mewara16-Mar-10 5:03 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
blackblizzard16-Mar-10 5:06
blackblizzard16-Mar-10 5:06 
GeneralRe: [SOLVED] Is reference comparison atomic? Pin
Luc Pattyn16-Mar-10 5:38
sitebuilderLuc Pattyn16-Mar-10 5:38 

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.