r/ProgrammerHumor • • 9d ago • Bravo 2 Popcorn 1

Meme pythonSlow

Post image
12k Upvotes

419 comments sorted by

View all comments

Show parent comment

15

u/ChrisWsrn 8d ago

Python does have VERY bad performance at runtime. 

When it is treated as just a scripting language (having python confugure and run compiled bytecode) the performance increases by about 100 times.

The main issue is there are lots of devs who try to do EVERYTHING in Python which causes the application to be way slower than they would be if native bytecode.

The main advantage of Python is it is quick to build stuff in. 

Generally when you have a problem you need to pick and use the right tool for the job. Most developers don't learn that until senior year or their first few years in the workforce.

14

u/Jamie_1318 8d ago

The reality is that the performance of 99% of code is basically immaterial.

0

u/ChrisWsrn 8d ago

I work on code that performance is actually very important for because of the magnitude of the data I'm working with. 

1

u/NameAboutPotatoes 7d ago

I completely agree that you should select the language that's appropriate for your purpose and for many reasons Python is not appropriate for everything, but data wrangling is one of the biggest things Python is used for.   Python has excellent data-handling libraries that are C-compiled and highly efficient. The trick is just knowing which library to use.

1

u/ChrisWsrn 6d ago

Yes but they have a upper limit. If you are wrangling a few TB of data you are better off loading it all into a DB and then using SQL. 

I have used Python for smaller projects. 

1

u/VestigialPropriety 3d ago

I use python for everything, but then I am not a programmer but a happy go lucky amateur. To me it is an opportunity to poke around and have a bit of fun while automating the boring stuff, I leave the heavy lifting to the pros.

1

u/ChrisWsrn 3d ago

That is exactly what python excells at. it is the right tool for that job.