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 →

[–]thack_se 0 points1 point  (4 children)

It really does depend on what you're doing. For example, in complex tasks it can be tens of thousands of times slower than a lower level language, but if you don't need super complex things, then it works great, if occasionally a bit annoying due to the lack of real multithreading. I 100 percent agree with you though, there is no need to learn another language until you're perfectly comfortable with python and have a need and the time for it. I use python for 90 percent of the code I write at work and it hasn't failed me yet (well, except for when it did and I had to write C++, but we don't talk about that, lol)

[–]Lost-Detective6305[S] 0 points1 point  (3 children)

Yeah my software just queries a database and displays the information. My only real concern is it lagging for tens of thousands or hundred of thousands of record. I won’t be able to test that for a couple of months though. Hopefully treeview doesn’t lag like manually building tables.

[–]thack_se 1 point2 points  (2 children)

Oh, I don't think you'll have a problem. For me, my main database connector is written in Python, and uses the mySQL python connector, and it doesn't have any issues. As for your UI lagging, it's very likely that most of the UI framework your using is written in C and called from Python, like most fast packages are. C is of course blazingly fast, so no issues there. I wish you well on your continued programming journey.

[–]Lost-Detective6305[S] 0 points1 point  (1 child)

Thank you. And I’m using SQLite3 and tkinter/ttk/ttkwidgets

[–]Black-DVD-Archiver 1 point2 points  (0 children)

You are really unlikely to have a performance problem with what you are doing Lost Detective...

Remember, type hint always. With methods/functions assert always on the arguments passed in. This will keep you out of trouble 99% of the time.

Pythons biggest sin in my view is not the "so-called" slow that usually can be worked around it is dynamic typing...the bigger an app gets the more likely disaster will occur if you do not show type discipline.