Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

12 replies

I thought function calls was one of the decently optimized things in Python

4

Just ritualistically wave a magnet near the computer

7
ilega_dhreply
feddit.nl

Don’t write code, why do you need a computer to do your math? Just do it on paper ffs.

2
TunaCowboyreply
lemmy.world

The downvotes are hilarious. Being able to drop down to C is one of python's selling points, and the title of the post includes the name of the python ref implementation __C__Python.

7

There is a difference being able to drop down in C and using exclusively C.

One of the main advantage of python is being to quickly write code, and using C-based library / part of code written in C (or fortran, or rust for what it matters) when needed.

"just write C" may lack a bit of nuance.

11

Exactly.

I don't really care, people will downvote for any number of reasons, and I know I was right, so it doesn't bug me

-7

You reached the end

Are Function Calls Still Slow in Python? An Analysis of Recent Optimizations in CPython | Spyke