amikha1lov / RecApp

User friendly Open Source screencaster for Linux written in GTK. Using free GStreamer modules and not depend on FFmpeg.
GNU General Public License v3.0
117 stars 20 forks source link

Slight improvements to startup times #77

Closed mathiascode closed 3 years ago

mathiascode commented 3 years ago

Lazily import the pulsectl module, and use the os.cpu_count() method introduced in Python 3.4. Combined with https://github.com/amikha1lov/RecApp/pull/76, the startup times are reduced by ~70 ms.

Relevant issue: https://github.com/amikha1lov/RecApp/issues/73