Re: [web2py] Re: Web2py on apache2 is slow

2013-10-10 Thread Michele Comitini
Hello Jayakumar, I would be grateful if you could post some code to show the problem. Both PHP and Python. Thanks 2013/10/10 Jayakumar Bellie > I have both LAMP and web2py installed in the same machine. > > I have the same logic to read a file. > > It looks web2py is slower than PHP 5.4.9 >

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-10 Thread Jayakumar Bellie
I have both LAMP and web2py installed in the same machine. I have the same logic to read a file. It looks web2py is slower than PHP 5.4.9 On Saturday, October 5, 2013 9:44:59 PM UTC+5:30, Ricardo Pedroso wrote: > > On Sat, Oct 5, 2013 at 12:36 AM, Derek > > wrote: > > > Yes, Python will be sl

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-05 Thread Ricardo Pedroso
On Sat, Oct 5, 2013 at 12:36 AM, Derek wrote: > Yes, Python will be slower than PHP. No, Python will not be slower than PHP. Some things are faster in Python other are faster in PHP. > PHP doesn't have a VM or garbage collection. How PHP does not have a VM? How PHP code runs, then? PHP > 5.

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Massimo Di Pierro
I agree with this assessment. The last issue is a problem we need to address in the install scripts. Could you make a patch? On Thursday, 3 October 2013 15:34:04 UTC-5, Thomas J. wrote: > > I've recently been comparing Web2py and PHP, this is what i found, maybe > it helps: > > 1.: PHP is faster

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Derek
Yes, Python will be slower than PHP. PHP doesn't have a VM or garbage collection. However, Python should be adequate for reading files and such. As others have said, post your benchmarks and post your code. Chances are there are things you can do in the code to speed it up, and make it's perfor

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Thomas J.
I've recently been comparing Web2py and PHP, this is what i found, maybe it helps: 1.: PHP is faster whereever it can do stuff within the interpreter, that includes handling post/get-data or templates. The PHP interpreter is written in C, so these things are really fast, whereas Web2py has to t

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Michele Comitini
Jayakumar, Are you sure that the code does exactly the same thing on PHP and Python? Send the code here if you can. It could depend on what you do with the grep output or how many times you spawn grep. mic 2013/10/4 Ricardo Pedroso > On Fri, Oct 4, 2013 at 8:33 AM, Jayakumar Bellie wrote: >

Re: [web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Ricardo Pedroso
On Fri, Oct 4, 2013 at 8:33 AM, Jayakumar Bellie wrote: > > I try to run a grep command on a 30 MB file and redirect output to a tmp > folder. > Read the file in the tmp folder and display it. > > When I do this in PHP it is very fast. > But when I do it in web2py it is slow. > > This is fast for

[web2py] Re: Web2py on apache2 is slow

2013-10-04 Thread Jayakumar Bellie
Both the servers H/W configuration are - Intel i5 650 @ 3.20GHz - 320 GB hard disk - 4GB RAM Both the server has Ubuntu 13.04 The major difference between the servers are Server 1: LAMP PostgreSQL (Installed but not used) Server 2: LAMP (Installed but not used, apart from apache2 used

[web2py] Re: Web2py on apache2 is slow

2013-10-02 Thread Derek
No clue. What do you mean by slow? Anything in python might be considered slow comparatively to php. On Tuesday, October 1, 2013 4:09:38 AM UTC-7, Jayakumar Bellie wrote: > > I have two servers, both are linux same configuration (OS and hardware). > > I have a program running in PHP in one serve

[web2py] Re: Web2py on apache2 is slow

2013-10-01 Thread Massimo Di Pierro
What do you mean by "loading the data"? On Tuesday, 1 October 2013 06:09:38 UTC-5, Jayakumar Bellie wrote: > > I have two servers, both are linux same configuration (OS and hardware). > > I have a program running in PHP in one server and it is very fast is > loading the data. > > I have web2py ru