__get/__set/__call performance questions with PHP

erting18

New Member
I have a custom-built MVC PHP framework that I am in the process of rewriting and had a question about performance and magic methods. With the model portion of the framework, I was thinking if \[code\]__get\[/code\]/\[code\]__set\[/code\] magic methods would cause too much performance hit to be worth using. I mean accessing (reads and writes) model data is going to be one of the most common things performed. Is the use of \[code\]__get\[/code\]/\[code\]__set\[/code\] magic methods too big of a performance hit for heavy use functionality like the model portion of a MVC framework?
 
Top