php3-list | 199903
Date: 03/31/99
- Next message: Troels Arvin: "Re: [PHP3] Phorum status?"
- Previous message: Steve Douville: "[PHP3] Loading Classes"
- In reply to: Steve Douville: "[PHP3] Loading Classes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I would doubt it's much, under most circumstances. If you have a heavy
load, the file I/O can hurt. I'm curious to see though. Try doing these
two things:
<?
$start = microtime();
put code in here;
$finish = microtime();
$total = $finish - $start;
echo "Total time: $total";
?>
and
<?
$start = microtime();
include("class.file");
$finish = microtime();
$total = $finish - $start;
echo "Total time: $total";
?>
and let us know what the difference is.
On Wed, 31 Mar 1999, Steve Douville wrote:
> Is there a performance difference between having a large class on the same
> page that uses it and having it in it's own file and including it?
>
> I know that it obviously is better to have the class in it's own file if it
> is needed in other processes.
>
> Thanks,
> Steve
>
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin <email protected>
>
>
>
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>
- Next message: Troels Arvin: "Re: [PHP3] Phorum status?"
- Previous message: Steve Douville: "[PHP3] Loading Classes"
- In reply to: Steve Douville: "[PHP3] Loading Classes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

