android/mobile-config.py | 9 +++++++++ 1 file changed, 9 insertions(+)
New commits: commit 657747aca81fc6f4fd8c32551c0aae2ec0f4b0fd Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Wed Dec 10 09:58:40 2014 +0100 fdo#85286 android: don't convert objects on load For the WW8 bugdoc, the speedup is 435 -> 98 ms, and the end result is the same from a viewer perspective. Change-Id: I9b6ed3b77748cdc71f373daf07548c6cd0dc732e diff --git a/android/mobile-config.py b/android/mobile-config.py index 13085c7..3ad495b 100755 --- a/android/mobile-config.py +++ b/android/mobile-config.py @@ -74,6 +74,15 @@ if __name__ == '__main__': print "saved %d of %d bytes: %2.f%%" % (saved, total, saved*100.0/total) + # Don't do pointless Word -> Writer and similar conversions when we have no UI. + microsoftImport = '%(component-schema)s[@%(name)s="Common"]/component/group[@%(name)s="Filter"]/group[@%(name)s="Microsoft"]/group[@%(name)s="Import"]/prop' % { + "component-schema": "{http://openoffice.org/2001/registry}component-schema", + "name": "{http://openoffice.org/2001/registry}name", + } + props = root.findall(microsoftImport) + for prop in props: + prop.findall("value")[0].text = "false" + # The namespace prefixes xs and oor are present in attribute *values*, and namespace # declarations for them are needed, even if no actual elements or attributes with these # namespace prefixes are present. Fun. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits