Changeset 3f6555d for message.c


Ignore:
Timestamp:
May 16, 2010, 1:15:25 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, 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
  • message.c

    r9a7b4f2 r3f6555d  
    7474  if(pair ==  NULL) {
    7575    pair = owl_malloc(sizeof(owl_pair));
    76     owl_pair_create(pair, owl_global_intern(&g, attrname), NULL);
     76    owl_pair_create(pair, g_intern_string(attrname), NULL);
    7777    owl_list_append_element(&(m->attributes), pair);
    7878  }
     
    496496void owl_message_set_hostname(owl_message *m, const char *hostname)
    497497{
    498   m->hostname=owl_global_intern(&g, hostname);
     498  m->hostname = g_intern_string(hostname);
    499499}
    500500
Note: See TracChangeset for help on using the changeset viewer.