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.
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 ]
← February 2021 →
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 |
Tags
My Blog Links
Recent Entries
-
don't use getframeinfo
on Oct 18 2018 10:22 AM
-
-
-
-
Recent Comments
Search My Blog
1 user(s) viewing
1 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)