Re: Consistent function names
| From: | Rowan Collins | Date: | Tue, 03 Mar 2015 22:18:32 +0000 |
| Subject: | Re: Consistent function names | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84267@lists.php.net to get a copy of this message | ||
On 3 March 2015 20:08:45 GMT, Lester Caine <lester@lsces.co.uk> wrote:
>The piece of the jigsaw I am missing is at which point does it become
>better to create a new extension for a complex object rather than
>simply
>writing a set of PHP classes?
A good question, wrappers can achieve a lot here. An extension has two key benefits that I can think
of: performance (indirection through userland code will always be slower, and for frequent
operations like string and array handling, it could add up to something significant) and convenience
(thanks to Composer, dependency management is pretty simple, but nothing beats functionality built
right into the language distribution).
Regards,
--
Rowan Collins
[IMSoP]