[Lazarus] [fpc-devel] New CHM documentation snapshot

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Oct 12 00:09:20 CEST 2009


On 11/10/2009, Andrew Haines <AndrewD207 at aol.com> wrote:
>
> okay here are my benchmarks :)
>
>  AMD Athlon(tm) 64 Processor 3500+ 2200MHZ
>
>  Start ==== fcl.chm
>  Text Toc read time: 00.116
>  Bin Toc read time: 00.021
[...]
>  Start ==== rtl.chm
>  Text Toc read time: 00.228
>  Bin Toc read time: 00.158


I love comparisons. :-) Here are some of my tests results for the OS/2
INF help file format using my INF help viewer implementation. I got
todays FPC & Docs from subversion and generated INF help for the RTL
and FCL. I still can't generate LCL help because the fpdoc's IPF
output has quite a few formatting errors and kills the wipfc help
compiler. FPDOC also doesn't generate index support for IPF output, so
no Index timing either. I'll try and fix both these issues during this
week. I'm keen to see the LCL timings because it is quite a bit bigger
compared to the RTL and FCL.

Anyway, here is what I have. Table of Content reading for RTL and FCL

---------------------------------------------
On system is a AMD Athlon(tm) 3000+  1830Mhz

Start ====  fcl.inf
TOC reading plus word dictionary population - read time: 00.003

Start ====  rtl.inf
TOC reading plus word dictionary population - read time: 00.008
---------------------------------------------


INF file sizes are as follows:
---------------------------
$ ls -hl *.inf
total 2.1M
-rw-r--r-- 1 graemeg graemeg 458K 2009-10-11 23:30 fcl.inf
-rw-r--r-- 1 graemeg graemeg 1.7M 2009-10-11 23:30 rtl.inf
---------------------------


I then wanted to know how long would it take to load the TOC, word
dictionary and INDEX, and then build and display the TOC in a
treeview, including displaying the first topic (help page) from the
treeview. This is what the end-user would experience after all.
---------------------------------------------
fcl.inf read & display time: 00.098

rtl.inf read & display time: 00.140
---------------------------------------------

What's interesting about this is that even though the RTL is 3.7x
larger than FCL in file size, it doesn't take that much longer to load
and display.

Here are some more details regarding each INF file and the data they contain.

Filename: fcl.inf  (458Kb)
Title: Free Pascal Component Library
Dictionary word count: 3774
Topic count: 1268
Index count: 0

Filename: rtl.inf  (1.7Mb)
Title: Free Pascal Runtime Library
Dictionary word count: 12960
Topic count: 3491
Index count: 0



-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list