Python Can Now Call Mojo
towardsdatascience.com·19w·
Discuss: DEV

, ML engineers, and software developers, optimising every bit of performance from our codebases can be a crucial consideration. If you are a Python user, you’ll be aware of some of its deficits in this respect. Python is considered a slow language, and you’ve probably heard that a lot of the reason for this is due to its Global Interpreter Lock (GIL) mechanism.

It is what it is, but what can we do about it? There are several ways we can ameliorate this issue when coding in Python, especially if you’re using a reasonably up-to-date version of Python.

  • The very latest releases of Python have a way of running code without using the GIL.
  • We can utilise high-performance third-party libraries, such as NumPy, to perform number crunching.
  • There are also many methods for parallel and…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help