git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small speedup
[enigma2.git]
/
lib
/
python
/
Components
/
EpgList.py
diff --git
a/lib/python/Components/EpgList.py
b/lib/python/Components/EpgList.py
index 384009454c2de7b38e788bf75e4c9a6c5b7229a6..4444d3b5ea7b9aabdb61f0d48988fe47c5bf8564 100644
(file)
--- a/
lib/python/Components/EpgList.py
+++ b/
lib/python/Components/EpgList.py
@@
-197,10
+197,7
@@
class EPGList(HTMLComponent, GUIComponent):
def fillMultiEPG(self, services, stime=-1):
t = time()
def fillMultiEPG(self, services, stime=-1):
t = time()
- test = [ '0RIBDTCn' ]
- for service in services:
- tuple = (service.ref.toString(), 0, stime)
- test.append( tuple )
+ test = [ '0RIBDTCn', (service.ref.toString(), 0, stime) for service in services ]
self.list = self.queryEPG(test)
self.l.setList(self.list)
print time() - t
self.list = self.queryEPG(test)
self.l.setList(self.list)
print time() - t
@@
-208,14
+205,7
@@
class EPGList(HTMLComponent, GUIComponent):
def updateMultiEPG(self, direction):
t = time()
def updateMultiEPG(self, direction):
t = time()
- test = [ 'RIBDTCn' ]
- for x in self.list:
- service = x[1]
- begTime = x[3]
- duration = x[4]
- if begTime is None:
- begTime = 0
- test.append((service, direction, begTime))
+ test = [ 'RIBDTCn', x[3] and (x[1], x[4], x[3]) or (x[1], x[4], 0) for x in self.list ]
tmp = self.queryEPG(test)
cnt=0
for x in tmp:
tmp = self.queryEPG(test)
cnt=0
for x in tmp: