mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
ghash: Document that GHashTable is not suitable for static hash tables
Instead, gperf should be used for that kind of thing. Inspired by http://stackoverflow.com/q/42372382/2931197. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -89,6 +89,10 @@
|
|||||||
* space saving, if your set is large. The functions
|
* space saving, if your set is large. The functions
|
||||||
* g_hash_table_add() and g_hash_table_contains() are designed to be
|
* g_hash_table_add() and g_hash_table_contains() are designed to be
|
||||||
* used when using #GHashTable this way.
|
* 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](https://www.gnu.org/software/gperf/).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user