Quoting Christian Biere <[EMAIL PROTECTED]> from ml.softs.gtk-gnutella.devel:
:No, not easily. As you can see in src/core/share.c, share_scan() does a lot of
:things and most data structures used are not very flexible i.e., you cannot
:insert an item efficiently. It's not impossible of course but not as trivial as
:the previous change. share_scan() needs cleaning before anyway because it is an
:ugly hack as it's not implemented as background task.

Yes, this is one of the ugliest reminiscence of the old GTKG version 0.12!

One thing I've always found annoying as well with that code is that it's an
all-or-nothing processing: during a library rescan, we can't share or serve
files.  That is stupid.

When it's rewritten to act as a background task, we must also make sure
the structure can be incrementally updated (add new files easily, remove
files easily) so that sharing is a continuous process, even when a rescan
is happening.

Raphael

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to