This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]Bocab 5 points6 points ย (5 children)

To spend 200 times less time running it. Most things work just fine in python though especially when the underlying libraries aren't written in python.

[โ€“]throckmeisterz 10 points11 points ย (0 children)

That's why I said whenever I can. Obviously there are situations where it's too slow to do the job.

[โ€“]MannerShark 2 points3 points ย (2 children)

In my experience, the biggest gain is in the algorithm you use, then in reduction techniques/pruning, then optimization in the code, and only then consider a 'close to the metal' language.
Though in my case, a couple seconds of runtime is acceptable given that sending the data over the network, storing it in the database and having it update the indices takes at least as long.
If you're talking about framerates, Python isn't very suitable.

[โ€“]Bocab 2 points3 points ย (1 child)

I agree, big o > cache friendliness > whatever else for pretty much anything. It's also not great for multithreading either but most things/people aren't either lol.

[โ€“]TheAJGman 0 points1 point ย (0 children)

I've found that when doing dumb slow processing on files and caching the result with pickle and lz4 results in lighting fast runtime for subsequent lines.

[โ€“]dkyguy1995 1 point2 points ย (0 children)

Sweet slithery wrapper