[tor-commits] [nyx/master] Use SQLite cache to reduce memory usage

atagar at torproject.org atagar at torproject.org
Sun Sep 3 01:24:13 UTC 2017


commit 40e25acad51daae38f9888699a9884c47148445e
Merge: 7304dd2 beead81
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Sep 2 18:21:52 2017 -0700

    Use SQLite cache to reduce memory usage
    
    Creating a little SQLite cache to store lookup tables we presently cram into
    memory. On my relay this drops memory usage from 42.8 MB to 33.0 MB (23%
    lower). Hopefully we'll find some other good candidates for this too.

 nyx/__init__.py | 183 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 nyx/starter.py  |  10 ----
 nyx/tracker.py  |  64 ++++++++++----------
 test/cache.py   | 149 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 364 insertions(+), 42 deletions(-)



More information about the tor-commits mailing list