You are viewing...

Care about Performance over Readability? Get rid of your Getters and Setters!

Updated on September 05, 2017 at the 01th hour
Posted under:

DISCLAIMER: All views are considered my own and you should not draw any conclusions on associates.

https://www.youtube.com/watch?v=OFgxAFdxYAQ

Cliff Click, during the Q/A, talks about not using getters and setters if you really really care about performance. One of the reasons being that there is a chance the getter/setter may not be inlined. Another may be that the function calls may cause a failure to inline hot spot areas due to a threshold being hit due to the function calls.
You just read "Care about Performance over Readability? Get rid of your Getters and Setters!". Please share if you liked it!
You can read more recent posts here.