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

November 2018

S M T W T F S
    123
45678910
11121314151617
18192021 22 2324
252627282930 

Tags

    Recent Entries

    Recent Comments

    Search My Blog

    0 user(s) viewing

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

    Categories