[Checkins] SVN: hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/core.py Add comment about suboptimal optimization.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Fri Nov 19 05:20:25 EST 2010


Log message for revision 118479:
  Add comment about suboptimal optimization.

Changed:
  U   hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/core.py

-=-
Modified: hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/core.py
===================================================================
--- hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/core.py	2010-11-19 10:19:04 UTC (rev 118478)
+++ hurry.resource/branches/janjaapdriessen-resource-publisher/src/hurry/resource/core.py	2010-11-19 10:20:24 UTC (rev 118479)
@@ -439,6 +439,8 @@
         library_url = base_url + inclusion.library.name + '/'
         if hurry.resource.hashing:
              # For every request, compute the hash of each library only once.
+             # XXX This is a suboptimal optimization that we would like to factor
+             # out.
              hash = hash_cache.get(library.name)
              if hash is None:
                  hash = library.hash()



More information about the checkins mailing list