Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-28 Thread Eugene San
Andi Gutmans wrote: Hi Eugene, Do you want to have an option to exclude libxml2 and its related functionality from the build? If so, have you done the analysis of what pieces of PHP create this dependency? Currently I've replaced libxml2 with libexpat + DOM in php, that solution saved 400

RE: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-27 Thread Andi Gutmans
Hi Eugene, Do you want to have an option to exclude libxml2 and its related functionality from the build? If so, have you done the analysis of what pieces of PHP create this dependency? In general, for the typical Web developer the tight integration of XML is a positive thing but if it's a min

Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-27 Thread Eugene San
Antony Dovgal wrote: On 27.02.2008 21:04, Eugene San wrote: 3) Next issue is XML with DOM support, we where using LIBXML2 but that costs ~2.5MB are there there options for supporting that? What costs 2.5MB? Dynamic linking against libxml2.so? Linking against libxml2

Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-27 Thread Antony Dovgal
On 27.02.2008 21:04, Eugene San wrote: >>> 3) Next issue is XML with DOM support, we where using LIBXML2 but that >>> costs ~2.5MB are there there options for supporting that? >>> >> >> What costs 2.5MB? >> Dynamic linking against libxml2.so? >> > Linking against libxml2 costs 0.4MB and li

Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-27 Thread Eugene San
Antony Dovgal wrote: On 26.02.2008 23:48, Eugene San wrote: 1) Is there any reason to link all PHP SAPI modules statically with all PHP objects? In most cases you need only one SAPI, so there is no reason to share something. 2) Is it possible to extract all shared functionality to

Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-27 Thread Antony Dovgal
On 26.02.2008 23:48, Eugene San wrote: > 1) Is there any reason to link all PHP SAPI modules statically with all > PHP objects? In most cases you need only one SAPI, so there is no reason to share something. > 2) Is it possible to extract all shared functionality to shared object > and links al

Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries

2008-02-26 Thread Daniel Brown
On Tue, Feb 26, 2008 at 3:48 PM, Eugene San <[EMAIL PROTECTED]> wrote: > Hi all, > > > I want to raise a discussion on subject that is very important for PHP > usage on Embedded platforms. > > I am myself working on projects where we use PHP to manage embedded > devices. Everything was fine but