Is Python ACTUALLY faster without the GIL?
The first 500 people to use my link will get a 1 month free trial of Skillshare! ► https://skl.sh/carberra01251 Python 3.13's free threading mode finally brought proper threading concurrency to the language by taking the first steps toward removing the GIL. I wanted to know: is it actually faster now? The answer may well surprise you! (Or it may not, who knows?) GIL overview video ► https://youtu.be/Wy4sI0zFXsU InfoWorld's video ► https://youtu.be/xw-8XBuTrIg?si=oA9gJE-pHsoeR0qN Code ► https://github.com/Carberra/python-but-faster/tree/main/2501-free-threading 00:00 - Intro 01:52 - The Monte Carlo simulation 04:19 - Running the serial and parallel benchmarks 06:07 - Why is threading slower? 06:31 - A sanity check 08:37 - Could it be random number generation? 10:21 - Profiling failures 11:37 - Final words 12:03 - Bonus: Numpy implementation + performance comparison 12:54 - Outro This video is sponsored by Skillshare. — ~ Hotlinks ~ Become a member ► https://www.youtube.com/channel/UC13cYu7lec-oOcqQf5L-brg/join Join the Discord ► https://discord.gg/5vVgQpK ~ Setup ~ Visual Studio Code ► https://youtu.be/PBQspYkkksU Terminal ► https://youtu.be/4RuGK3w6Mbs Desk/recording gear ► https://kit.co/Carberra PC build ► https://uk.pcpartpicker.com/list/TmzGYN ~ Affiliations ~ Codecrafters (40% off any plan) ► https://app.codecrafters.io/join?via=parafoxia Keeper Password Manager (30% off your first year) ► https://keeper.io/r/EX4FB1C #python #coding #howto
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.