question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:26 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
k-sokcommented, Oct 17, 2018

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!

0reactions
kayhayencommented, Jan 6, 2019

I wrote up the section, next push is going to have it, closing therefore.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found