Re: PHP to C translator
| From: | Michael Stearne | Date: | Thu, 06 Jul 2000 15:21:18 +0000 |
| Subject: | Re: PHP to C translator | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5227@lists.php.net to get a copy of this message | ||
Although PHP4 has showed a great improvement, I don't really think PHP is the
language to do this in. This is even big for Perl., How complex is the script
(a lot of regular expressions)? This should probably be done in C.
Michael
Rouvas Stathis wrote:
> As posted earlier....
>
> Well, the scripts do not iteract with a database.
> They read a some text files from disk, do some calculations and output
> some more text files to disk.
> The calculation part is super-fast.
> The output part is super-fast also.
> BUT, the reading part from the text files is painfully slow....
> For a text file of 350MB, the script run from PHP3 takes about 1.5h.
> For the same text file, the script run from PHP4 takes about 30m. (wow,
> that *is* an improvement, 300%).
> All files are local to the machine.
> Judging from the HDD led activity (yes, not a very reliable indicator) I
> think it can be done faster.
> I haven't tried the Zend optimizer, yet.
> I'm running on SuSE 6.4, AMD-K7/500, HDD-UDMA66, 256MB RAM.
>
> Any more ideas?
>
> Thank you fro your time,
> -Stathis.
>
> Andi Gutmans wrote:
> >
> > Such a translator doesn't exist.
> > I suggest you try PHP 4.0.1pl2 and see how much of a speed improvement you
> > get (I would also be interested in hearing about it).
> > If the script is still extremely slow get back to this list and maybe
> > explain what you're doing and what is slow (You might have other
> > bottlenecks such as database accesses or file manipulation; then again you
> > might not.)
> >
> > Andi
> >
> > At 07:13 PM 7/5/00 +0300, Rouvas Stathis wrote:
> > >I have written a bunch of PHP3 scripts that run in stand-alone mode
> > >(cgi).
> > >All goes extremely well.
> > >Unfortunately they take an inordinate ammount of time to finish.
> > >I haven't tried PHP4 yet, but does anyone know if a translator from PHP
> > >to C in a Linux environment is available?
> > >
> > >-Stathis.
> > >
> > >
> > >--
> > >+-----------------------------+
> > >|Rouvas Stathis |
> > >|University of Athens |
> > >|Department of Informatics |
> > >|http://www.di.uoa.gr/~rouvas |
> > >|rouvas@di.uoa.gr |
> > >+-----------------------------+
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > >For additional commands, e-mail: php-general-help@lists.php.net
> > >To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> > ---
> > Andi Gutmans <andi@zend.com>
> > http://www.zend.com/
>
> --
> +-----------------------------+
> |Rouvas Stathis |
> |University of Athens |
> |Department of Informatics |
> |http://www.di.uoa.gr/~rouvas |
> |rouvas@di.uoa.gr |
> +-----------------------------+
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net