On an average this code takes 0.3 s. is there any way that this can be improved?
Thanks,
Amit.
Aaron Meurer
unread,
Oct 30, 2014, 11:38:05 AM10/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
Your line profile isn't very helpful because all it tells you is that
the Point creation is slow, which is what you already knew. I would
try running your same code with
https://github.com/joerick/pyinstrument, or put the line profile
decorator on the geometry code.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
Hi Amit,
Just pitching in. There are sometimes disparities while benching using line_profiler (which I just noticed today).
I have a gist that takes 15s using the profiler and just 3s if I do a conventional timing using time() before and after the function. I'm not sure if it is due to some overhead of the profiler, but you might just want to do a manual timing using time() to see if it matches, before concluding anything.