Skip to content
Snippets Groups Projects
  • Yorhel's avatar
    d942a0eb
    Only create the line format once when drawing the browser window · d942a0eb
    Yorhel authored
    The memory for this format is now statically allocated as well. I
    was under the impression its size would depend on wincols, but this is
    the format we're talking about, the string does not have to hold the
    actual line contents. I must have been sleeping again...
    
    Oh well, this is a slight performance improvement, although it doesn't
    seem the be the cause of the browing slowness when running under
    valgrind. (Obviously running ncdu with valgrind is supposed to be
    slower, but the current performance is rather bad...)
    d942a0eb
    History
    Only create the line format once when drawing the browser window
    Yorhel authored
    The memory for this format is now statically allocated as well. I
    was under the impression its size would depend on wincols, but this is
    the format we're talking about, the string does not have to hold the
    actual line contents. I must have been sleeping again...
    
    Oh well, this is a slight performance improvement, although it doesn't
    seem the be the cause of the browing slowness when running under
    valgrind. (Obviously running ncdu with valgrind is supposed to be
    slower, but the current performance is rather bad...)