Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to use Background worker to perform job asynchronously? Pin
N a v a n e e t h6-May-08 21:11
N a v a n e e t h6-May-08 21:11 
AnswerRe: How to use Background worker to perform job asynchronously? Pin
Christian Graus6-May-08 21:42
protectorChristian Graus6-May-08 21:42 
GeneralRe: How to use Background worker to perform job asynchronously? Pin
cocoonwls6-May-08 22:03
cocoonwls6-May-08 22:03 
GeneralRe: How to use Background worker to perform job asynchronously? Pin
Christian Graus6-May-08 22:18
protectorChristian Graus6-May-08 22:18 
QuestionWhich is best (obj != null) or ( obj == null) ? Pin
vytheese6-May-08 20:45
professionalvytheese6-May-08 20:45 
AnswerRe: Which is best (obj != null) or ( obj == null) ? Pin
Vasudevan Deepak Kumar6-May-08 20:47
Vasudevan Deepak Kumar6-May-08 20:47 
AnswerRe: Which is best (obj != null) or ( obj == null) ? Pin
MarkB7776-May-08 21:26
MarkB7776-May-08 21:26 
AnswerRe: Which is best (obj != null) or ( obj == null) ? Pin
Colin Angus Mackay6-May-08 21:32
Colin Angus Mackay6-May-08 21:32 
vytheese wrote:
In above which will execute faster. == or !=


Considering that your PC probably runs at 2+ billion clock cycles per second, and such an operation is so trivial compared to other instructions that could be issued, does it really matter? Seriously, the jump that's going to happen after the conditional check is going to cost more than the check because of the way processor pipelining works. And the jump is going to happen regardless of the type of check you are performing.

In short you are over optimising.

Finally, just so you get your question answered - They cost the same in terms of processor cycles.

Upcoming FREE developer events:
* Developer Day Scotland

Recent blog posts:
* Introduction to LINQ to XML (Part 1) - (Part 2)

My website | Blog

GeneralRe: Which is best (obj != null) or ( obj == null) ? Pin
Reelix6-May-08 22:19
Reelix6-May-08 22:19 
GeneralRe: Which is best (obj != null) or ( obj == null) ? Pin
vytheese6-May-08 22:30
professionalvytheese6-May-08 22:30 
QuestionHow can I read data from printer port before printing based on printer port in C# Pin
Krishna Prasad RVS6-May-08 20:39
Krishna Prasad RVS6-May-08 20:39 
AnswerRe: How can I read data from printer port before printing based on printer port in C# Pin
Christian Graus6-May-08 21:43
protectorChristian Graus6-May-08 21:43 
QuestionHow to get the changed group name from Active Directory Pin
TOMCAT816-May-08 20:09
TOMCAT816-May-08 20:09 
Questionproblem with a dropdown control inside repeater Pin
Supreet6-May-08 19:35
Supreet6-May-08 19:35 
AnswerRe: problem with a dropdown control inside repeater Pin
Christian Graus6-May-08 20:03
protectorChristian Graus6-May-08 20:03 
Questionpass a text from a form to a Crystal report header Pin
imannasr6-May-08 19:16
imannasr6-May-08 19:16 
AnswerRe: pass a text from a form to a Crystal report header Pin
Christian Graus6-May-08 20:02
protectorChristian Graus6-May-08 20:02 
GeneralRe: pass a text from a form to a Crystal report header Pin
imannasr6-May-08 20:15
imannasr6-May-08 20:15 
GeneralRe: pass a text from a form to a Crystal report header Pin
Christian Graus6-May-08 21:39
protectorChristian Graus6-May-08 21:39 
GeneralRe: pass a text from a form to a Crystal report header Pin
imannasr6-May-08 23:25
imannasr6-May-08 23:25 
GeneralRe: pass a text from a form to a Crystal report header Pin
Christian Graus7-May-08 11:53
protectorChristian Graus7-May-08 11:53 
Questioncan you help me about a powerfull report builder in C# , exept Crystall Report Pin
imannasr6-May-08 18:43
imannasr6-May-08 18:43 
AnswerRe: can you help me about a powerfull report builder in C# , exept Crystall Report Pin
Christian Graus6-May-08 19:14
protectorChristian Graus6-May-08 19:14 
GeneralRe: can you help me about a powerfull report builder in C# , exept Crystall Report Pin
imannasr6-May-08 19:41
imannasr6-May-08 19:41 
GeneralRe: can you help me about a powerfull report builder in C# , exept Crystall Report Pin
darkelv6-May-08 19:58
darkelv6-May-08 19:58 

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.