Begin forwarded message:

From: Roman Borschel <[EMAIL PROTECTED]>
Date: December 6, 2007 7:29:19 PM GMT+01:00
To: <[EMAIL PROTECTED]>
Subject: Re: [PHP-DEV] Namespace

Thats true, however frameworks tend to have a lot of different "namespaces". Just take a look at the Zend Framework.

Roman

On Dec 6, 2007, at 7:20 PM, <[EMAIL PROTECTED]> wrote:

Just a thought... You know the whole thing about bundling into one file improving performance. People do this when they have upwards of 20 classes being included per request. I bet that most of the time these classes are a part of a framework / something that would be a part of common name space
anyway.

The whole "One namespace per file" policy will not stop people from bundling
their classes.  It will still allow them to bundle, but they will be
restricted to just one file per namespace.

So given a situation where someone has a library of around 20 classes... Where they would normally bundle down to one file... They bundle it down to 3 files, one for each namespace... There is hardly going to be much of a
performance difference between 1 and 3 includes.

I guess the point I am saying is that everyone is freaking out about the possible performance loss - but in reality you can still bundle and get 90%
of the bundling gain.

SCOTT MCNAUGHT
Software Developer

Synergy 8 / +617 3397 5212
[EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to