Debian Codegraph @

doc/gperf_7.html

raw
1 <HTML>
2 <HEAD>
3 <!-- This HTML file has been created by texi2html 1.52b
4 from gperf.texi on 16 April 2025 -->
5
6 <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
7 <TITLE>Perfect Hash Function Generator - 6 Known Bugs and Limitations with gperf</TITLE>
8 </HEAD>
9 <BODY>
10 Go to the <A HREF="gperf_1.html">first</A>, <A HREF="gperf_6.html">previous</A>, <A HREF="gperf_8.html">next</A>, <A HREF="gperf_10.html">last</A> section, <A HREF="gperf_toc.html">table of contents</A>.
11 <P><HR><P>
12
13
14 <H1><A NAME="SEC25" HREF="gperf_toc.html#TOC25">6 Known Bugs and Limitations with <CODE>gperf</CODE></A></H1>
15
16 <P>
17 The following are some limitations with the current release of
18 <CODE>gperf</CODE>:
19
20 </P>
21
22 <UL>
23 <LI>
24
25 The <CODE>gperf</CODE> utility is tuned to execute quickly, and works quickly
26 for small to medium size data sets (around 1000 keywords). It is
27 extremely useful for maintaining perfect hash functions for compiler
28 keyword sets. Since version 3.0, <CODE>gperf</CODE> also works
29 efficiently on much larger keyword sets (over 15,000 keywords).
30
31 <LI>
32
33 The size of the generate static keyword array can get <EM>extremely</EM>
34 large if the input keyword file is large or if the keywords are quite
35 similar. This tends to slow down the compilation of the generated C
36 code, and <EM>greatly</EM> inflates the object code size. If this
37 situation occurs, consider using the <SAMP>&lsquo;-S&rsquo;</SAMP> option to reduce data
38 size, potentially increasing the keyword recognition time by a negligible
39 amount. Since many C compilers cannot correctly generate code for
40 large switch statements it is important to qualify the <VAR>-S</VAR> option
41 with an appropriate numerical argument that controls the number of
42 switch statements generated.
43
44 <LI>
45
46 The maximum number of selected byte positions has an
47 arbitrary limit of 255. This restriction should be removed, and if
48 anyone considers this a problem write me and let me know so I can remove
49 the constraint.
50 </UL>
51
52 <P><HR><P>
53 Go to the <A HREF="gperf_1.html">first</A>, <A HREF="gperf_6.html">previous</A>, <A HREF="gperf_8.html">next</A>, <A HREF="gperf_10.html">last</A> section, <A HREF="gperf_toc.html">table of contents</A>.
54 </BODY>
55 </HTML>