Successive Computational time reduction for the same task

33 views
Skip to first unread message

uday3prakash

unread,
Jul 8, 2015, 7:56:37 AM7/8/15
to lamp_t...@googlegroups.com

Could you figure-out the reason for the successive reduction in the computational time.?


udhay prakash pethakamsetty

unread,
Jul 9, 2015, 3:34:09 AM7/9/15
to Santosh Python Tcloud, Lamp_tutorial
Ok friends, 

The answer is here. 

In my screenshot, you could observe that when we are successively doing the same operation, bytecode will be generated for the first time.

And, as the same operation is encountered again, instead to re-interpreting, it executes the pre-generated bytecode.

So, it takes lesser amount of time in the 2nd time.

 

This is again the reason for executing it in same amount of time in the next further loops.





--
You received this message because you are subscribed to the Google Groups "Lamp_tutorial" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lamp_tutoria...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vijay kumar mandadapu

unread,
Jul 9, 2015, 3:42:29 AM7/9/15
to udhay prakash pethakamsetty, Santosh Python Tcloud, Lamp_tutorial
Hi Uday,
I did a little experiment on this process. I wrote the same script in my environment and executed multiple times but here what I observed is some times computation time increasing and some times decreasing. Here I am hoping that it depends on CPU processing time(CPU processing speed) i.e CPU processes multiple requests at the same time. At the time of our request CPU may be busy with other tasks and takes some time to come to our request then processes. In the process of time decreasing( your observation), CPU processing time is very more and quickly responding to our request. I am not sure and please correct me if i am going wrong.

Thanks,
Vijay.
Reply all
Reply to author
Forward
0 new messages