Re: g_hash_table_new with size parameter



Hi,

On Sat, 2009-02-21 at 21:42 +0300, Кутейников Дмитрий wrote:
> Can you make function like g_hash_table_new, but with size parameter?
> It would be great if GLib could allocate certain piece of memory when
> creating hash table, because I know average elements count which my
> program will keep in it.

Can you show us any profiling / benchmarks that indicate that such an
API would make a noticeable difference in a real-world application?


Sven




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]