On Wed, 12 Feb 2003 09:09:31 +0100
Hans Hagen
At 08:53 AM 2/12/2003 +0100, you wrote:
Hartmut Henkel
writes:
So there might be some corner for improvement. Using strcmp() the reverse way seems not to speed up things; how to write a more sophisticated inequality-checker?
Heiko stated that he used a hash table for this. This will speed up things dramatically.
but if i remember right he only looked at the first 8 chars (assuming berry) which is not that useful for texnansi-* files -)
the best way (imo) is to let later entries overload previous ones, so not much checking is needed at all;
I remember this discussion on the pdftex-list and can still not understand why we should look for overloaded entries. pdftex should take the first match. pdftex --mapfile=some.map overrides the default of the pdftex.cnf Additional \pdfmapfile in the tex-code get higher priority than the settings in pdftex.cnf or --mapfile and will be read first. Thus, if pdftex has found all required fonts it can stop reading the map-files, which can speed-up the process dramatically. In most documents pdftex has only to read 4-6 map files with about 10-20 entries. Jens