Commit 404c2d24 authored by Philip Withnall's avatar Philip Withnall
Browse files

ghash: Document that GHashTable is not suitable for static hash tables

Instead, gperf should be used for that kind of thing.

Inspired by

Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent f6f6b3d8
......@@ -89,6 +89,10 @@
* space saving, if your set is large. The functions
* g_hash_table_add() and g_hash_table_contains() are designed to be
* used when using #GHashTable this way.
* #GHashTable is not designed to be statically initialised with keys and
* values known at compile time. To build a static hash table, use a tool such
* as [gperf](
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment