From 8e6c2d0c842b7356aae2ec8192ba627669b7dad2 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Sun, 9 Jul 2006 12:33:53 -0800 Subject: [PATCH] put the modules in a more sane order, so that the ones that do the most work (or are most "destructive") are last, and the short and simple ones first... maybe we should do a sort on an attribute the implies how many bytes are read or requires http access or something.. [git-p4: depot-paths = "//depot/": change = 868] --- pymediaserv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pymediaserv b/pymediaserv index 8b8983e..f293b69 100755 --- a/pymediaserv +++ b/pymediaserv @@ -25,7 +25,9 @@ def tryloadmodule(mod): pass # ZipStorage w/ tar support should be last as it will gobble up empty files. -modules = [ 'dvd', 'mpegtsmod', 'shoutcast', 'ZipStorage' ] +# These should be sorted by how much work they do, the least work the earlier. +# mpegtsmod can be really expensive. +modules = [ 'shoutcast', 'dvd', 'ZipStorage', 'mpegtsmod' ] modmap = {} for i in modules: modmap[i] = tryloadmodule(i)