[glom] Slight speed up
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Slight speed up
- Date: Fri, 15 Apr 2011 07:43:02 +0000 (UTC)
commit ec78a38877472efeee62cea0a1909e079ea5548d
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Apr 15 09:42:46 2011 +0200
Slight speed up
.../repository_analyzer_begin_scan.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/examples/example_scripts/repository_analyzer_begin_scan.py b/examples/example_scripts/repository_analyzer_begin_scan.py
index 5fd07d9..a5dd96d 100644
--- a/examples/example_scripts/repository_analyzer_begin_scan.py
+++ b/examples/example_scripts/repository_analyzer_begin_scan.py
@@ -578,7 +578,8 @@ class PackageData:
#Remove any unnecessary leading or trailing whitespace:
self.license_text = self.license_text.strip()
- print_debug( " debug: is standard license?: %s" % standard_licenses.get_is_standard_license(self.license_text) )
+ # This debug output calls a method that is slow:
+ #print_debug( " debug: is standard license?: %s" % standard_licenses.get_is_standard_license(self.license_text) )
return license_found
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]