[tor-commits] [nyx/master] Fetch manual information when needed

atagar at torproject.org atagar at torproject.org
Sun Aug 27 19:39:47 UTC 2017


commit 7c341f9028162af1ca4f4de6af1b8a041a9aa7b8
Merge: 68211c5 0712265
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Aug 27 12:25:21 2017 -0700

    Fetch manual information when needed
    
    By default the config panel only show the most important torrc options,
    so why fetch data about everything? The full manual has more information
    than we need, not to mention commandline argument descriptions and the
    like.
    
    Fetching information we need on demand from a sqlite database instead.
    Honestly, the results of this are smaller than I hoped. A 2 MB drop in
    memory (40.1 MB to 38.0 MB, 5%) and a drop in startup time from 1.4s to
    1.2s (14%).
    
    Not much, but oh well. Bit simpler too since we no longer attempt to read
    the user's local man page.

 nyx/__init__.py      |   2 +-
 nyx/panel/config.py  | 120 ++++++++++++++++++++++++++++++++++-----------------
 test/panel/config.py |   7 +--
 3 files changed, 84 insertions(+), 45 deletions(-)



More information about the tor-commits mailing list