Re:Making Python fast – Adventures with mypyc
by alanwreath on Tuesday September 27, 2022 @11:35AM
(#32996725)
I agree with you -- but I also don't say no to free food.
I mean regardless of whether mypy was going to make my code run faster I would have used it for the shear confidence it gives wrt to my code correctness. The fact that I can use that same code (untouched) to speed it up... that's just means I get to have my cake and eat it too :P
Re:Making Python fast – Adventures with mypyc
by meadsteve on Tuesday September 27, 2022 @01:16PM
(#32998225)
Yeah this is exactly it for me. I already had type annotations and ran mypy to help with correctness. And I tried this out because it felt like a nice thing to get for free.
I mean regardless of whether mypy was going to make my code run faster I would have used it for the shear confidence it gives wrt to my code correctness. The fact that I can use that same code (untouched) to speed it up... that's just means I get to have my cake and eat it too :P