"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: fix tog log inefficiency
To:
gameoftrees@openbsd.org
Date:
Sat, 7 Aug 2021 22:55:10 +0200

Download raw body.

Thread
  • Stefan Sperling:

    fix tog log inefficiency

    • Christian Weisgerber:

      fix tog log inefficiency

Stefan Sperling:

> Navigating tog's log view on this repository is rather slow because
> the large message will be parsed whenever the display is refreshed.
> 
> With this patch tog log caches a copy of the first line of every
> log message and uses this copy when updating the display.
> This makes tog somewhat usable on the above repository.

I don't know...  Feels like the wrong place to cache this.

How about adding short_message to struct got_commit_object and
filling it in got_object_parse_commit()?

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de