Re: [PATCH 3/3] use cache for function names in hunk headers
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Sep 20, 2010, 19:15 UTC
- Message-ID
- <AANLkTi==Bcc8kkCXX1qN1QnpMF7U7DRhUkdwaStmkQ66@mail.gmail.com>
- In-Reply-To
- <20100920173605.GA13057@localhost>
Heya,
On Mon, Sep 20, 2010 at 19:36, Clemens Buchacher <drizzd@aon.at> wrote:
> The test creates a file with 50000 lines and a one-line change > every 10 lines, i.e., about 5000 hunks. Since none of the lines > matches a function definition, previous to this optimization, the > file was searched 5000 times.
Ah, that makes sense, please add (something like) that to the commit message :).
-- Cheers, Sverre Rabbelier