2011-09-22, 00:44
Hi All,
I noticed an ATV2 issue yesterday on that causes a 4 sec directory load time on ATV2 vs a 2 sec load on ipad 1 : http://forum.xbmc.org/showthread.php?tid=106453.
The perferance issue seems to stem ATV2 pythons interpeter on common python libraries eg: urllib2 import call add 2 sec to page load time.
Should we code around it or is there are plans to optimise this library?
Thanks,
slyi
I noticed an ATV2 issue yesterday on that causes a 4 sec directory load time on ATV2 vs a 2 sec load on ipad 1 : http://forum.xbmc.org/showthread.php?tid=106453.
The perferance issue seems to stem ATV2 pythons interpeter on common python libraries eg: urllib2 import call add 2 sec to page load time.
Should we code around it or is there are plans to optimise this library?
Thanks,
slyi
PHP Code:
import xbmcgui
import xbmcplugin
#uncomment urllib2 import and see 2 sec increase in load time
#import urllib2
def showRoot(localpath, handle):
li=xbmcgui.ListItem('See perf difference with urllib2')
u=localpath
xbmcplugin.addDirectoryItem(handle,u,li,True)
xbmcplugin.endOfDirectory(handle)
def main():
showRoot(sys.argv[0],int(sys.argv[1]))
if __name__ == "__main__":
main()