Perf: Use of sort and sorted functions optimized (#748)
* Update mixer.py * Update graph.py * Update mixer.py * Update mixer.py * Update bdistapk.py * Update toolchain.py * Update build.py * Update build.py
This commit is contained in:
parent
cd378d16e3
commit
fe01f50c65
7 changed files with 8 additions and 16 deletions
p4a/pythonforandroid/recipes/android/src/android
|
@ -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]
|
||||
return min(busy, key=lambda x: x.play_time)
|
||||
|
||||
|
||||
class ChannelImpl(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue