diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-12-01 03:23:25 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-12-01 03:23:25 +0000 |
commit | 3a03e4be1a744d37c66ea97651ca082ee4eb39d4 (patch) | |
tree | 1413ab7738e519a88c4fe7cd9910f02a2339cbd1 /src/stylesheet.h | |
parent | db917066e504364749a21a43b2fd8193db0322e8 (diff) | |
download | libcss-3a03e4be1a744d37c66ea97651ca082ee4eb39d4.tar.gz libcss-3a03e4be1a744d37c66ea97651ca082ee4eb39d4.tar.bz2 |
Divorce css_string from whatever gets stored in lpu hashes.
Use pointers to parserutils_hash_entry directly in stylesheet datastructures.
The upshot of this for allzengarden.css is:
5506 slots used (of 8192 => 67.211914%)
Data:
8 full blocks: 32768 bytes
9 partial blocks: 35124 bytes (of 36864 => 95.279945%)
Total: 69936 (4112) (32)
Hash structures: 65584
i.e. a total string dictionary size of 135,520 bytes, which is some 74,056 bytes less than before.
svn path=/trunk/libcss/; revision=5859
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r-- | src/stylesheet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h index 1ab3939..487f408 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -48,8 +48,8 @@ typedef enum css_combinator { } css_combinator; typedef struct css_selector_detail { - const css_string *name; /**< Interned name */ - const css_string *value; /**< Interned value, or NULL */ + const parserutils_hash_entry *name; /**< Interned name */ + const parserutils_hash_entry *value; /**< Interned value, or NULL */ uint32_t type : 4, /**< Type of selector */ comb : 2, /**< Type of combinator */ |