Changeset 3f6555d for global.c


Ignore:
Timestamp:
May 16, 2010, 1:15:25 AM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
c314f39
Parents:
f034ac0
git-author:
David Benjamin <davidben@mit.edu> (05/15/10 17:38:31)
git-committer:
David Benjamin <davidben@mit.edu> (05/16/10 01:15:25)
Message:
Punt obarray and friends in favor of g_intern_string

It's somewhat faster (about 1.5x by completely unrigorous tests), and
it's less code for us to maintain.

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r0881cdd r3f6555d  
    113113  g->pseudologin_notify = 0;
    114114
    115   owl_obarray_init(&(g->obarray));
    116 
    117115  owl_message_init_fmtext_cache();
    118116  owl_list_create(&(g->io_dispatch_list));
     
    10121010}
    10131011
    1014 const char * owl_global_intern(owl_global *g, const char * string)
    1015 {
    1016   return owl_obarray_insert(&(g->obarray), string);
    1017 }
    1018 
    10191012owl_list *owl_global_get_io_dispatch_list(owl_global *g)
    10201013{
Note: See TracChangeset for help on using the changeset viewer.