2 ms·
Java is about an order of magnitude faster than Python. It's a JIT-compiled statically typed language, after all, and Oracle's JIT compiler is the best in class
by int_19h 2y ago
Java is about an order of magnitude faster than Python. It's a JIT-compiled statically typed language, after all, and Oracle's JIT compiler is the best in class.
That said, given your original request, I don't think it has much to do with language choice. Displaying a very large number of rows in a data grid or similar is a classic GUI task in line-of-business apps, and the answer has always been either virtualization (lazy loading) or pagination.
One trick to improve UX when virtualizing data is to do preloading asynchronously in the background - ideally on a separate thread - and start it before the user scrolls all the way to the end (e.g. when there's still a couple of pages of data left).
- dotancohen 2y agoYes, that is exactly what I have been doing. Thank you. One thing that I would like to discover is how to adjust the scroll bar size so that it appears as if more records are loaded than actually are.
- mappu 2y agoIn Qt you should use the model/view framework if possible. It gives a virtualized list with a render callback. https://doc.qt.io/qtforpython-6/overviews/qtwidgets-model-view-programming.html https://doc.qt.io/qtforpython-6/overviews/qtwidgets-model-vi...
- dotancohen 1y agoThank you. I will definitely peruse this.