optimizing-c-code-line-by-line-part-2-slides
optimizing-c-code-line-by-line-part-2-slides
Line-by-line,
Part II
Chris B. Behrens
@chrisbbehrens
Demo
Performance in assignment
Assigning to a property
Assigning to public variable
Talk about the implications of it
For properties simple enough
to be represented as fields,
representing them as fields
makes no performance
difference
Just use properties
Demo Two ways of checking permission for a file
One quick and dirty
One that is a more formal implementation
A third approach
Talk about what it means
This Is Cheating, in the Best Way