c# Programming Glossary: optimisation
ReverseString, a C# interview-question http://stackoverflow.com/questions/1009689/reversestring-a-c-sharp-interview-question the same as reversing a sequence of chars. I like Marc's optimisation for null empty and single character inputs. In particular not..
When to use Shift operators << >> in C#? http://stackoverflow.com/questions/1933597/when-to-use-shift-operators-in-c improve this question There is no need to use them for optimisation purposes because the compiler will take care of this for you...
How to do joins in LINQ on multiple fields in single join http://stackoverflow.com/questions/373541/how-to-do-joins-in-linq-on-multiple-fields-in-single-join equivalent really so it's just a matter of the optimisations available. Equijoins provide simple optimisation in LINQ to.. of the optimisations available. Equijoins provide simple optimisation in LINQ to Objects which includes LINQ to DataSets by creating..
Reuse asynchronous socket: subsequent connect attempts fail http://stackoverflow.com/questions/5762276/reuse-asynchronous-socket-subsequent-connect-attempts-fail and this may help you. Personally I think it's an optimisation too far in client code. Re update 1 to your question no you'd.. make sense. Can you explain why you think this micro optimisation is actually necessary in your case share improve this answer..
Is using Thread.Abort() and handling ThreadAbortException in .NET safe practice? http://stackoverflow.com/questions/6382997/is-using-thread-abort-and-handling-threadabortexception-in-net-safe-practice is maintained is hard . Summary It's a bit like optimisation rule 1 don't do it rule 2 experts only don't do it unless you..
How to find all possible subsets of a given array? http://stackoverflow.com/questions/679203/how-to-find-all-possible-subsets-of-a-given-array For finding subsets which equal a total t for large N one optimisation might be to record those subsets which exceed t and not test..
Good way of firing an event at a particular time of day? http://stackoverflow.com/questions/725917/good-way-of-firing-an-event-at-a-particular-time-of-day if necessary i.e. if you don't have the circular buffer optimisation and set a new timer. Obviously when you change the set of events..
Why is LINQ .Where(predicate).First() faster than .First(predicate)? http://stackoverflow.com/questions/8663897/why-is-linq-wherepredicate-first-faster-than-firstpredicate simple unit tests that illustrate this. When compiled with optimisation on TestWhereAndFirst is about 30 faster than TestFirstOnly on..
|