From: Christian Grothoff Date: Thu, 19 Jan 2017 14:58:50 +0000 (+0100) Subject: note on things left to do X-Git-Tag: taler-0.2.1~409 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aedd5919e802370061850486c96da72b25df7f22;p=oweals%2Fgnunet.git note on things left to do --- diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c index 92ab61543..5acd098b6 100644 --- a/src/cadet/gnunet-service-cadet-new_channel.c +++ b/src/cadet/gnunet-service-cadet-new_channel.c @@ -24,6 +24,10 @@ * @brief logical links between CADET clients * @author Bartlomiej Polot * @author Christian Grothoff + * + * TODO: + * - estimate max bandwidth using bursts and use to optimize + * transmission rate(s) */ #include "platform.h" diff --git a/src/cadet/gnunet-service-cadet-new_peer.c b/src/cadet/gnunet-service-cadet-new_peer.c index 5b978ff77..47f725e09 100644 --- a/src/cadet/gnunet-service-cadet-new_peer.c +++ b/src/cadet/gnunet-service-cadet-new_peer.c @@ -24,6 +24,14 @@ * @brief Information we track per peer. * @author Bartlomiej Polot * @author Christian Grothoff + * + * TODO: + * - implement GCP_set_hello() / do HELLO advertising properly + * - optimize stopping/restarting DHT search to situations + * where we actually need it (i.e. not if we have a direct connection, + * or if we already have plenty of good short ones, or maybe even + * to take a break if we have some connections and have searched a lot (?)) + * - optimize MQM ready scans (O(n) -> O(1)) */ #include "platform.h" #include "gnunet_util_lib.h" @@ -195,6 +203,10 @@ struct CadetPeer /** * Number of message queue managers of this peer that have a message in waiting. + * + * Used to quickly see if we need to bother scanning the @e msm_head DLL. + * TODO: could be replaced by another DLL that would then allow us to avoid + * the O(n)-scan of the DLL for ready entries! */ unsigned int mqm_ready_counter;