Click here to Skip to main content
15,881,715 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Fast Expression Evaluation

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
23 Feb 2010CPOL 4.5K  
A better method of finding solutions to problems like this is to use a tool to decompile the IL which is assembled .NET. The tool I recomend is LINQPad; which features a lambda button which will decompile the sample code fragment being analyzed.To further your understanding of such...
A better method of finding solutions to problems like this is to use a tool to decompile the IL which is assembled .NET. The tool I recomend is LINQPad; which features a lambda button which will decompile the sample code fragment being analyzed.

To further your understanding of such optimizations, I would recomend reading the book by Randall Hyde author of 'The Art of Assembly' and 'Write Great Code Series'.

Volume Two of Write Great Code illistrates how to write high level code while considering the lower lever constructs and limitations of compilers:

Writing Great Code Vol 2: Thinking Low-Level, Writing High-Level[^]

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO AW Proto-Code, Inc.
United States United States
I’m a self learned wiz kid turned Architect. Stared with an Apple IIe, using AppleSoft Basic, ProDos and Begal Basic at age 10.

Picked up LPC in college before the Dot Com Explosion. Wrote some Object C in the USAF for one of my instructors. Got a break from a booming computer manufacture testing server software. Left the Boom and went to work for a Dot Com built from the ashes of Sun Micro in CS. Mentoring in Java solidified me as a professional developer. Danced in the light of the sun for 13 years, before turning to the dark side. An evil MVP mentored me in the ways of C# .NET. I have not looked back since.

Interests include:

~ Windows Presentation Foundation and Silverlight
~ Parallel Programming
~ Instruction Set Simulation and Visualization
~ CPU to GPU code conversion
~ Performance Optimizations
~ Mathematics and Number Theory
~ Domain Specific Languages
~ Virtual Machine Design and Optimization
~ Graphics Development
~ Compiler Theory and Assembler Conversion Methodology
~ CUDA, OpenCL, Direct Compute, Quantum Mechanics

IEEE Associate Member 2000
This is a Organisation (No members)


Comments and Discussions

 
-- There are no messages in this forum --