python-guide icon indicating copy to clipboard operation
python-guide copied to clipboard

Would a section on performance be of interest?

Open Anders-E opened this issue 4 years ago • 1 comments

I feel like a section on common performance pitfalls in Python could be highly useful, not only to new Python programmers but also as a reference for intermediate programmers and up.

Potentially such a section could also include tips on how to profile and/or benchmark Python code.

Would this fit within the scope of this guide?

Anders-E avatar Dec 01 '21 09:12 Anders-E

Video Playback Performance: Loading and playing videos efficiently, especially if they are being streamed from a remote location like Firebase, requires attention to buffer management, resolution, and network latency.

  1. File Upload Performance: Uploading large media files to Firebase can be time-consuming. Discussing strategies such as background uploads, upload progress monitoring, and retries for failed uploads could improve user experience.

  2. Mobile App Optimization: Kivy apps on mobile platforms might suffer from performance issues like high memory consumption, slow UI rendering, or battery drain. A section on optimizing the app for different platforms (Android, iOS) could be crucial, especially with respect to file handling, threading, and hardware utilization.

  3. Firebase Efficiency: Ensuring Firebase interactions (such as file uploads, authentication) are handled asynchronously and optimized to avoid unnecessary network requests is essential for a smooth user experience.

  4. General App Responsiveness: Detailing methods for keeping the UI responsive during long-running operations (e.g., using multithreading, coroutines, or background services) would interest developers aiming for high-performance applications.

sanjomathew09 avatar Oct 23 '24 15:10 sanjomathew09