mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] [patch #4393] Lower ip blocking memory usage


From: pango
Subject: [Mldonkey-users] [patch #4393] Lower ip blocking memory usage
Date: Sat, 3 Sep 2005 15:30:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050718 Galeon/1.3.20 (Debian package 1.3.20-1)

URL:
  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4393>

                 Summary: Lower ip blocking memory usage
                 Project: mldonkey, a multi-networks file-sharing client
            Submitted by: mlpango
            Submitted on: sam 03.09.2005 à 15:30
                Category: None
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

That patch does two things :

* First, it adds a weak hash table of strings to share same descriptions
across ranges. Some canonization is done to improve sharing (currently only
trims spaces, but could be improved). Roughly 30% of descriptions seem to be
sharable in the list I tried.

* Second, it adds an option to drop ranges descriptions altogether, for those
that are more interested in lowering memory usage than getting descriptive
reports of what connections have been blocked. All newly loaded ranges get an
"Unknown" description, which is immediately shared by the above weak hash
table.

Totally untested patch :)







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: sam 03.09.2005 à 15:30  Name: ip_blocking_descriptions.patch  Size:
4,55Ko   By: mlpango

<http://savannah.nongnu.org/patch/download.php?item_id=4393&item_file_id=5134>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4393>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]