Click here to Skip to main content
15,900,724 members
Home / Discussions / C#
   

C#

 
QuestionWindows Forms Messages Problem Pin
gopher_uk27-Jul-07 9:57
gopher_uk27-Jul-07 9:57 
AnswerRe: Windows Forms Messages Problem Pin
User 665829-Jul-07 7:14
User 665829-Jul-07 7:14 
QuestionFile Streamer Problems Pin
ytubis27-Jul-07 9:44
ytubis27-Jul-07 9:44 
AnswerRe: File Streamer Problems Pin
BoneSoft27-Jul-07 9:55
BoneSoft27-Jul-07 9:55 
AnswerRe: File Streamer Problems Pin
Luc Pattyn27-Jul-07 9:59
sitebuilderLuc Pattyn27-Jul-07 9:59 
AnswerRe: File Streamer Problems Pin
snorkie27-Jul-07 10:01
professionalsnorkie27-Jul-07 10:01 
AnswerRe: File Streamer Problems Pin
PhilDanger27-Jul-07 10:34
PhilDanger27-Jul-07 10:34 
QuestionPerformance difference?? Pin
Shy Agam27-Jul-07 9:42
Shy Agam27-Jul-07 9:42 
Hello experts,

There's something that has been bothering me for quite some time now...
Is there a performance difference between the following two implementations?

for (...)
{
    int x = ...;
    // Do some stuff
}

int x;

for (...)
{
    // Do same stuff
}
In the first case, is x getting allocated for every step of the loop?
Or does .NET knows to allocate it once, and use it again and again?

Thanks in advance,
Shy.
AnswerRe: Performance difference?? Pin
BoneSoft27-Jul-07 9:52
BoneSoft27-Jul-07 9:52 
AnswerRe: Performance difference?? Pin
Shy Agam27-Jul-07 10:02
Shy Agam27-Jul-07 10:02 
GeneralRe: Performance difference?? Pin
Luc Pattyn27-Jul-07 10:10
sitebuilderLuc Pattyn27-Jul-07 10:10 
GeneralRe: Performance difference?? Pin
Shy Agam27-Jul-07 10:13
Shy Agam27-Jul-07 10:13 
AnswerRe: Performance difference?? Pin
Luc Pattyn27-Jul-07 10:06
sitebuilderLuc Pattyn27-Jul-07 10:06 
GeneralRe: Performance difference?? Pin
BoneSoft27-Jul-07 10:29
BoneSoft27-Jul-07 10:29 
GeneralRe: Performance difference?? Pin
Luc Pattyn27-Jul-07 10:46
sitebuilderLuc Pattyn27-Jul-07 10:46 
AnswerRe: Performance difference?? Pin
Paul Conrad27-Jul-07 10:07
professionalPaul Conrad27-Jul-07 10:07 
AnswerRe: Performance difference?? Pin
snorkie27-Jul-07 10:51
professionalsnorkie27-Jul-07 10:51 
GeneralRe: Performance difference?? Pin
PIEBALDconsult27-Jul-07 13:38
mvePIEBALDconsult27-Jul-07 13:38 
GeneralRe: Performance difference?? Pin
Luc Pattyn27-Jul-07 14:57
sitebuilderLuc Pattyn27-Jul-07 14:57 
AnswerMessage formatting question (expires on sunday) Pin
Luc Pattyn27-Jul-07 23:36
sitebuilderLuc Pattyn27-Jul-07 23:36 
GeneralRe: Message formatting question (expires on sunday) Pin
Shy Agam28-Jul-07 1:41
Shy Agam28-Jul-07 1:41 
GeneralRe: Message formatting question (expires on sunday) Pin
Luc Pattyn28-Jul-07 2:18
sitebuilderLuc Pattyn28-Jul-07 2:18 
QuestionHow to use C++ file ( header ) in C# project ? Pin
Yanshof27-Jul-07 8:35
Yanshof27-Jul-07 8:35 
AnswerRe: How to use C++ file ( header ) in C# project ? Pin
Judah Gabriel Himango27-Jul-07 9:21
sponsorJudah Gabriel Himango27-Jul-07 9:21 
GeneralRe: How to use C++ file ( header ) in C# project ? Pin
Yanshof27-Jul-07 10:37
Yanshof27-Jul-07 10:37 

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.