Subscribe to Adventures in Spaghetti code        RSS Feed
-----

don't use getframeinfo

Icon Leave Comment
I found another enormously slow method in Python: getframeinfo.

from inspect import getframeinfo

https://docs.python....ry/inspect.html

It's eating up 21% of my code time. I only call it 90 times in a certain program whereas some other funtions are used 5000 times. To give you an idea of how slow it is, it is 535 times slower than the join method.

0 Comments On This Entry

 

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

May 2019

S M T W T F S
   1234
567891011
12131415161718
19 20 2122232425
262728293031 

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)

    Categories