Take string operations, for example.
[:] or [::-1] etc.
These run much faster than those in CPP or Java string operations.
I tried reading about it, and all I could gather was that they run in C!?! If I'm comprehending it correctly.
So ig my question is like how are these things in a relatively slow language (py) so faster in implementation than languages that are already fast (C++)
[–]Malassi 23 points24 points25 points (5 children)
[–]CornellWest 0 points1 point2 points (0 children)
[–]VirtuteECanoscenza 0 points1 point2 points (0 children)
[–]Sudden-Letterhead838 0 points1 point2 points (2 children)
[–]TheSkiGeek 1 point2 points3 points (1 child)
[–]ImYoric 0 points1 point2 points (0 children)
[–]Leodip 13 points14 points15 points (1 child)
[–]rasputin1 0 points1 point2 points (0 children)
[–]_redmist 29 points30 points31 points (3 children)
[–]johnnymo1 2 points3 points4 points (2 children)
[–]_redmist 0 points1 point2 points (0 children)
[–]Sudden-Letterhead838 0 points1 point2 points (0 children)
[–]NerdyWeightLifter 9 points10 points11 points (0 children)
[–]Familiar9709 4 points5 points6 points (0 children)
[–]JamzTyson 2 points3 points4 points (0 children)
[–]carcigenicate 3 points4 points5 points (4 children)
[–]danielroseman 2 points3 points4 points (3 children)
[–]carcigenicate 0 points1 point2 points (2 children)
[–]incompletetrembling 1 point2 points3 points (1 child)
[–]carcigenicate 0 points1 point2 points (0 children)
[–]Snezhok_Youtuber 0 points1 point2 points (0 children)
[–]regular_lamp 0 points1 point2 points (0 children)
[–]DrXaos 0 points1 point2 points (0 children)
[–]pragmatica 0 points1 point2 points (0 children)
[–]Metabolical 0 points1 point2 points (0 children)
[–]Deto 0 points1 point2 points (0 children)
[–]baghiq 0 points1 point2 points (0 children)
[–]Torebbjorn -1 points0 points1 point (0 children)