1

I'm going to be working on a project here shortly that will require fast response times and next to no latency. It will be a SOAP server built in PHP (preferably).

I was doing my research on optimization tips and found that Google said using getters and setters more than doubles execution size. I was floored because I use them all the time to enforce type safety.

My question to you, SO, is:

Should I care about types at all? Should I give up on PHP and go to something like Java (yuck)? I'm looking for guidance on the general rule of thumb when it comes to type safety in PHP while keeping optimization in mind.

I do realize, the actual noticeable time for a normal application (especially a small SOAP server) won't be noticeable at all, and the required calls would have to be massive, greater than that of a normal PHP application. With that being said, I still want clarification on the best practices.

Thanks in advance! Kyle

4

0 回答 0