[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] improve the performance of htags
From: |
Hideki IWAMOTO |
Subject: |
Re: [PATCH] improve the performance of htags |
Date: |
Tue, 09 Aug 2005 13:08:07 +0900 |
On Fri, 05 Aug 2005 23:10:23 +0900, Hideki IWAMOTO wrote...
> This is a patch for improving the performance of htags
> by decreasing the frequency of invoking parser.
>
This is revised version.
By moving the conversion from tabs to spaces into htags, system time decreased
further.
htags/anchor.c | 146 ++++++++++++++++++++++++++++++++++++++++++++----------
htags/anchor.h | 2
htags/htags.c | 69 ++++++++++++++++++++++---
htags/lexcommon.h | 35 ++++++++++++
htags/src2html.c | 34 +++++++-----
5 files changed, 237 insertions(+), 49 deletions(-)
> ==== patched version ====
> [linux-2.0.40]$ time htags --statistics
> - Elapsed time of making duplicate entries ............ 12 seconds.
> - Elapsed time of making function index ............... 0 seconds.
> - Elapsed time of making file index ................... 2 seconds.
> - Elapsed time of making include file index ........... 4 seconds.
> - Elapsed time of making hypertext .................... 30 seconds.
> - The entire elapsed time ............................. 48 seconds.
> 31.934u 9.837s 0:54.96 75.9% 0+0k 0+0io 0pf+0w
[linux-2.0.40]$ time htags --statistics
- Elapsed time of making duplicate entries ............ 12 seconds.
- Elapsed time of making function index ............... 0 seconds.
- Elapsed time of making file index ................... 0 seconds.
- Elapsed time of making include file index ........... 2 seconds.
- Elapsed time of making hypertext .................... 22 seconds.
- The entire elapsed time ............................. 37 seconds.
30.138u 4.631s 0:40.45 85.9% 0+0k 0+0io 25pf+0w
----
Hideki IWAMOTO address@hidden
htags-anchor+expand.patch
Description: Binary data