At 07:19 PM 2/23/2003 +0100, Hartmut Henkel wrote:
Hi,
there's another _experimental_ patch: I have replaced the fm_tab array for fontmaps in pdftex by two AVL trees, and modified the fmlookup(), tfmoffm() etc. functions accordingly. Now the pdffontmap list in pdftex.ch contains pointers (instead of indices) to the fm_entry entries.
The mapfile reading speed then is great: 100000 lines of mapfile need a fraction of a second on my 400 MHz PC. AVL in principle allows to replace fm_entry entries while filling the tree. Beware: The patch is buggy, most likely around reading TT fontmaps, as I need to understand things around the mk_ext_fm() function; never came along TTFs.
interesting, i wonder how complicated it is to have such trees accessible by primitives (\newhash, \sethash, \gethash) in order to store strings (later to be processed by scantokens or so). Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------