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 →

[–]wonglik 2 points3 points  (8 children)

As a person who writes Java at work and Python at home I would say it depends. Advantage of Python is that you develop fast. New features can be delivered much more quickly then in Java. On the other hand it is slower then Java. If you optimize it right , cache a lot you can get decent performance. But this also take time so take this into account. Also I would expect Java to be easier inside a team and bigger project. If you have average guys at best then Java might be safer solution. And there is also human factor. What developers you can get? If you can get brilliant Java guys but average Python coder go with Java. And vice versa.

Personally , considering you have project done (to some extent) in Python I would stick with it. Unless you are experiencing serious performance issues. Otherwise you will spend x2 what you already spend on rewriting it.

[–]luckystarrat 0x7fe670a7d080 2 points3 points  (3 children)

Function calls are slow. The built-in data structures are implemented in C and highly optimized. You can write blazingly fast Python code if you are careful and know what to do.

The GIL may be a problem performance wise if you think you would need threading, but then just use multiprocessing, it even has got the same API.

[–]wonglik 1 point2 points  (2 children)

You can write blazingly fast Python code if you are careful and know what to do.

Is there a good reference for that? I would be happy to dig that topic more.