[Glade-users] libglade: coding style: just curious about glade_xml_get_widget implementation
- From: Neil Zanella <nzanella gmail com> (Neil Zanella)
- Subject: [Glade-users] libglade: coding style: just curious about glade_xml_get_widget implementation
- Date: Fri, 22 Oct 2004 18:13:57 -0600
Hello,
Sorry for asking this, libglade is fast anyways, so it doesn't need to
be tweaked
for performance right now in my opinion, but I am just so curious I can't resist
asking this: does anyone know whether glade_xml_get_widget uses a hash
table on the input strings to look up the pointer to retrieve? Or is
it an O(n log n)
kind of walk through the nodes of the binary tree to find the right
one. Either way,
if it uses a hash table, how does it hash on the strings, given that they are of
variable length strings?
Just interested because I don't know whether I shoud keep calling
glade_xml_get_widget
each time I need it or just waste lots of line of code creating named pointer
variables for everything. The first approach seems neater, so long as it does
not have a performance drawback.
Just curious about style,
Thanks,
Neil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]