Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3031 invoked by uid 1010); 28 Feb 2008 12:05:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3015 invoked from network); 28 Feb 2008 12:05:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2008 12:05:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=eugenesan@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=eugenesan@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.191 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: eugenesan@gmail.com X-Host-Fingerprint: 209.85.128.191 fk-out-0910.google.com Received: from [209.85.128.191] ([209.85.128.191:16646] helo=fk-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/42-06693-C83A6C74 for ; Thu, 28 Feb 2008 07:05:32 -0500 Received: by fk-out-0910.google.com with SMTP id f33so3540694fkf.7 for ; Thu, 28 Feb 2008 04:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type; bh=gIcuIrjh62mAaiKUVmq2xKlPOxcQg5ibrVLzr0hflH4=; b=S9rc7NlOumxKN7fYm4vJG/pGYCClBTanZSXM7q2eI1BOep/3sSHtqI4QGCoV04NbFP8edou/q7eKgASkqjx11E9hLGuQCUibuW6+jPRG9pp0vZur2yXYJ9397EP/72nxKHmE9TP7JNZ8YuuRb2KiuuHtJjPeFaQzzUk15S6k/K0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type; b=OuqSR+RDYgmYnBaFakb/mTC+YcMT9A1uxPTxWWK/kQlJgXtjl/K+hksumDVdg4ihNdir2HvbiMlGPm0PJLdtKQnN3Z63mGk/kLNU1CEKrwppX5PbkMUhlIaI4X3+fs/ClnjcjspEuOMA6ORZq/Ooyfan8ZJWUWu4JVJ8sc9t4CI= Received: by 10.82.138.6 with SMTP id l6mr4626307bud.35.1204200329551; Thu, 28 Feb 2008 04:05:29 -0800 (PST) Received: from ?10.6.58.23? ( [84.108.16.112]) by mx.google.com with ESMTPS id c5sm2433982nfi.31.2008.02.28.04.05.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Feb 2008 04:05:27 -0800 (PST) Message-ID: <47C6A373.9010201@gmail.com> Date: Thu, 28 Feb 2008 14:05:07 +0200 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Andi Gutmans CC: PHP Developers Mailing List References: <47C47B26.9000701@gmail.com> <698DE66518E7CA45812BD18E807866CE0150644F@us-ex1.zend.net> In-Reply-To: <698DE66518E7CA45812BD18E807866CE0150644F@us-ex1.zend.net> Content-Type: multipart/alternative; boundary="------------070704060103030604050604" Subject: Re: [PHP-DEV] PHP footprint and sharing code among SAPI binaries From: eugenesan@gmail.com (Eugene San) --------------070704060103030604050604 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 400K in PHP. I am pretty sure performance of DOM won't be same but that suits my needs. I've experienced problems with finding correct parameters for configure, and finished with passing --disable-all and --enable-xxx for every feature i needed. > In general, for the typical Web developer the tight integration of XML is a positive thing but if it's a minor tweak we may be able to look at that. You'd have to be more precise with this list though on what you really need and if you've managed to figure out the dependencies which prevent you from achieving your goals. > > Andi > > >> -----Original Message----- >> From: Eugene San [mailto:eugenesan@gmail.com] >> Sent: Tuesday, February 26, 2008 12:49 PM >> To: PHP Developers Mailing List >> Subject: [PHP-DEV] PHP footprint and sharing code among SAPI binaries >> >> 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 lately the need to work from flash >> memory appeared. >> >> We discovered that PHP binaries are linked statically with whole PHP >> functionality and there is huge overhead when several SAPI modules used >> on same system. >> >> >> I have few question I hope to get answers on or ideas for: >> >> >> 1) Is there any reason to link all PHP SAPI modules statically with all >> PHP objects? >> >> 2) Is it possible to extract all shared functionality to shared object >> and links all SAPI modules against it? >> >> 3) Next issue is XML with DOM support, we where using LIBXML2 but that >> costs ~2.5MB are there there options for supporting that? >> >> >> Maybe someone already addressed footprint problem and has any kind of >> solutions for that? >> >> Please, any kind of information will helpful here. >> >> >> Thanks ahead. >> >> Eugene San >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > --------------070704060103030604050604--