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  [EMAIL PROTECTED]

Attachment: htags-anchor+expand.patch
Description: Binary data

_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to