Calling a function with explicit parameters vs. call_user_func_array()

后端 未结 2 1591

I saw a piece of code earlier this week (which, unfortunately, I am unable to retrieve) and I am curious about the way the author went about implementing the __call()<

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-30 08:21

    You can find this in the phpsavant template classes. PMJ got a tip about how slow call_user_func*() and figured that 90% of the work would be handled by the first five params much faster. Anything else would be handled the slow way. I can't find the post with the discussion about how, but this is the page where he identifies the problem. http://paul-m-jones.com/archives/182

提交回复
热议问题