Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# alias Pin
Bill Stumps25-Feb-09 20:42
Bill Stumps25-Feb-09 20:42 
AnswerRe: C# alias Pin
PIEBALDconsult24-Feb-09 10:35
mvePIEBALDconsult24-Feb-09 10:35 
QuestionInvoke and InvokeRequired in dll Pin
Member 471395924-Feb-09 9:40
Member 471395924-Feb-09 9:40 
AnswerRe: Invoke and InvokeRequired in dll Pin
harold aptroot24-Feb-09 9:57
harold aptroot24-Feb-09 9:57 
AnswerRe: Invoke and InvokeRequired in dll Pin
Alan N24-Feb-09 14:22
Alan N24-Feb-09 14:22 
QuestionActivation Code Pin
sitnet24-Feb-09 8:44
sitnet24-Feb-09 8:44 
AnswerRe: Activation Code Pin
Thomas Stockwell24-Feb-09 8:47
professionalThomas Stockwell24-Feb-09 8:47 
AnswerRe: Activation Code Pin
Christian Graus24-Feb-09 9:52
protectorChristian Graus24-Feb-09 9:52 
Question[Message Deleted] Pin
ioctl5124-Feb-09 8:08
ioctl5124-Feb-09 8:08 
AnswerRe: What is the standard way to poll a thread for completion? Pin
PIEBALDconsult24-Feb-09 8:41
mvePIEBALDconsult24-Feb-09 8:41 
GeneralRe: What is the standard way to poll a thread for completion? Pin
Pete O'Hanlon24-Feb-09 9:27
mvePete O'Hanlon24-Feb-09 9:27 
GeneralRe: What is the standard way to poll a thread for completion? Pin
PIEBALDconsult24-Feb-09 10:25
mvePIEBALDconsult24-Feb-09 10:25 
QuestionMost efficient switch statement variable to use? Pin
Bruce Coward24-Feb-09 6:34
Bruce Coward24-Feb-09 6:34 
AnswerRe: Most efficient switch statement variable to use? Pin
PIEBALDconsult24-Feb-09 6:49
mvePIEBALDconsult24-Feb-09 6:49 
AnswerRe: Most efficient switch statement variable to use? Pin
Luc Pattyn24-Feb-09 7:17
sitebuilderLuc Pattyn24-Feb-09 7:17 
GeneralRe: Most efficient switch statement variable to use? Pin
PIEBALDconsult24-Feb-09 8:43
mvePIEBALDconsult24-Feb-09 8:43 
GeneralRe: Most efficient switch statement variable to use? Pin
DaveyM6924-Feb-09 8:49
professionalDaveyM6924-Feb-09 8:49 
GeneralRe: Most efficient switch statement variable to use? Pin
PIEBALDconsult24-Feb-09 10:40
mvePIEBALDconsult24-Feb-09 10:40 
GeneralRe: Most efficient switch statement variable to use? Pin
harold aptroot24-Feb-09 11:53
harold aptroot24-Feb-09 11:53 
AnswerRe: Most efficient switch statement variable to use? Pin
Luc Pattyn24-Feb-09 14:23
sitebuilderLuc Pattyn24-Feb-09 14:23 
GeneralRe: Most efficient switch statement variable to use? Pin
Deresen24-Feb-09 10:08
Deresen24-Feb-09 10:08 
GeneralRe: Most efficient switch statement variable to use? Pin
harold aptroot24-Feb-09 11:31
harold aptroot24-Feb-09 11:31 
GeneralRe: Most efficient switch statement variable to use? Pin
Deresen24-Feb-09 12:02
Deresen24-Feb-09 12:02 
You are true, and you always have to bitfuck wherever you can I agree with that. Maybe it's because I like it, maybe because I started with microcontrollers.

But if we go and calculate, we will see that it doesn't really matter which types you will use.
An average to small cache size is 1 Gb, this means. Let's say your program will use half of it so this leaves you to use 500 M of bytes. If you're an efficient programmer you can never make your program to use the whole 500 M. Even if you store numbers which you could put into a byte in an Int128 it'll take you an array of (500/16 =~) 30 million to fill it.

The only way to fill your RAM is when you're busy with graphics. And even then it's not neccecary to bitfuck, because Microsoft made some good library's which will all take care of the memory problem.

In conclusion I think we can say that bitfucking is fun, but not really neccesary if you're just making efficient code.
GeneralRe: Most efficient switch statement variable to use? Pin
harold aptroot24-Feb-09 12:19
harold aptroot24-Feb-09 12:19 
GeneralRe: Most efficient switch statement variable to use? Pin
Deresen24-Feb-09 12:26
Deresen24-Feb-09 12:26 

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.