Performance penalty for uncompiled code
See original GitHub issue$ pip3 install nuitka
$ python -m nuitka --version
0.6.0.3
Python: 3.6.6 (default, Sep 12 2018, 18:26:19)
Executable: /usr/bin/python
OS: Linux
Arch: x86_64
(same behavior with 0.6.1rc6)
# test.py
import time
import re
start = time.time()
for i in range(2000000):
re.match('xyz', 'asdf')
print(time.time() - start)
$ python test.py
4.666041374206543
$ python -m nuitka --run test.py
8.2843918800354
Similar performance penalty also with os.fspath
for example.
Issue Analytics
- State:
- Created 5 years ago
- Comments:26 (21 by maintainers)
Top Results From Across the Web
performance penalty for -fPIC, -shared, or derived data types?
On the more popular platforms, the penalty for -fPIC and shared objects is unlikely to reach 5%. I would guess that a large...
Read more >Forum OpenEdge compiler operations not visible in client logging
When I'm doing development work I may forget to compile a program, or I may deliberately leave programs uncompiled. However there is a...
Read more >Performance with non executed code - c++ - Stack Overflow
If you mean application performance, leaving in unused code will have no impact. The compiler does dead code elimination.
Read more >Understand the debug build settings - Visual Studio Tutorial
A symbols file allows the debugger to figure out which compiled instructions correspond to which line of uncompiled code. Having a symbols file...
Read more >US11386605B2 - Performance-based code alteration for animation ...
The uncompiled code is separated at the partition and updated with the ... code blocks would exceed the processing performance penalty incurred by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well. The fact that compiling as extension module solves the problem is actually good news for me. Just have tested that and it really works without a slowdown. Thank you very much!
I wrote up the section, next push is going to have it, closing therefore.