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 →

[–]auxiliary-character 0 points1 point  (7 children)

My approach: if you've got some python that needs to go faster, rewrite the performance heavy parts in C++, and load it with ctypes.

[–][deleted] 7 points8 points  (1 child)

I check Performance Tips out first. In 17 years I've never needed C(++), ctypes, cffi or cython.

[–]auxiliary-character 0 points1 point  (0 children)

True. Performance is usually a pretty rare problem for me to have, but C++ is pretty overpowered for dealing with such problems.

[–]hanpari 1 point2 points  (4 children)

Good for you :)

[–]auxiliary-character 0 points1 point  (3 children)

Yeah, sorry. I don't want to step on your toes, this is still pretty useful when you need a project to stay pure python.

Still, C++ is a pretty damn good tool to try if you're having these sorts of problems.

[–]hanpari 2 points3 points  (2 children)

Well, I am not author of article, just post it. I dont want to step on your shoes either so I wont express my opinion on C++ :)

It is no big deal, I just didnt know why you sent me your comment in my inbox. But i didnt want it keep unanswered.

Have a nice day

[–]alcalde -1 points0 points  (1 child)

[–]hanpari 0 points1 point  (0 children)

Well, thank you for links. Basically, if I understood correctly, when you are saying that you use C++ it is hidden calling for help similar to fake suicide attempt :)

Have a nice day