remark
authorChristian Grothoff <christian@grothoff.org>
Mon, 10 Oct 2011 10:30:59 +0000 (10:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 10 Oct 2011 10:30:59 +0000 (10:30 +0000)
src/fs/gnunet-service-fs_pe.c

index 1ed7085c40e9d258254f0e81eb0a1417bc7c24ab..ed59c59e603e3e7d6f2066764c83bf85939decc1 100644 (file)
@@ -501,6 +501,8 @@ GSF_plan_add_ (struct GSF_ConnectedPeer *cp, struct GSF_PendingRequest *pr)
   }
   mpc.merged = GNUNET_NO;
   mpc.pr = pr;
+  /* FIXME: O(n) call here, LRN reports this is a performance
+     problem.  Try using hash map!? */
   GNUNET_CONTAINER_heap_iterate (pp->priority_heap, &merge_pr, &mpc);
   if (mpc.merged != GNUNET_NO)
     return;