]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added an optimization TODO comment. No runtime changes.
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 14 Feb 2011 05:00:44 +0000 (22:00 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 14 Feb 2011 05:00:44 +0000 (22:00 -0700)
src/stmem.cc

index 426d9f4d745f1066f3a567fa14e862a70e3d0855..719ea1d7ddccdecf12efd32fe47bc793eeb3bbf8 100644 (file)
@@ -198,6 +198,7 @@ mem_hdr::internalAppend(const char *data, int len)
 mem_node *
 mem_hdr::getBlockContainingLocation (int64_t location) const
 {
+    // Optimize: do not create a whole mem_node just to store location
     mem_node target (location);
     target.nodeBuffer.length = 1;
     mem_node *const *result = nodes.find (&target, NodeCompare);