[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: note on why gnunet-gns can
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: note on why gnunet-gns can be slow |
Date: |
Sat, 01 Jun 2019 01:06:13 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 777e57cfc note on why gnunet-gns can be slow
777e57cfc is described below
commit 777e57cfce5f0d688d4147bf183723d539db6134
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jun 1 01:05:35 2019 +0200
note on why gnunet-gns can be slow
---
src/gns/gns_tld_api.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gns/gns_tld_api.c b/src/gns/gns_tld_api.c
index e62bc437d..c4bf78477 100644
--- a/src/gns/gns_tld_api.c
+++ b/src/gns/gns_tld_api.c
@@ -128,8 +128,7 @@ static void
eat_tld (char *name, const char *tld)
{
GNUNET_assert (0 < strlen (name));
- if ((NULL == tld) ||
- (strlen (name) == strlen (tld)))
+ if ((NULL == tld) || (strlen (name) == strlen (tld)))
{
strcpy (name, GNUNET_GNS_EMPTY_LABEL_AT);
}
@@ -337,7 +336,10 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle
*handle,
}
GNUNET_free (dot_tld);
}
-
+ /* FIXME: this call is still shitty slow to do the longest
+ prefix if we have thousands of egos. We should modify
+ the IDENTITY API to do the longest prefix matching
+ inside of the identity service and not do an O(n) IPC! */
ltr->id_co =
GNUNET_IDENTITY_connect (ltr->gns_handle->cfg, &identity_zone_cb, ltr);
if (NULL == ltr->id_co)
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated: note on why gnunet-gns can be slow,
gnunet <=