Perf: Use of sort and sorted functions optimized #748

Merged
g1tman merged 8 commits from master into master 2019-11-25 11:28:17 +01:00
Showing only changes of commit 174d8a6a4a - Show all commits

View file

@ -93,9 +93,7 @@ def find_channel(force=False):
if not force:
return None
busy.sort(key=lambda x: x.play_time)
return busy[0]
min(busy, key=lambda x: x.play_time)
class ChannelImpl(object):