commit | 34d900ba9fdbe41f6486d69f088da02f03916b50 | [log] [tgz] |
---|---|---|
author | Russ Cox <[email protected]> | Mon May 10 16:03:39 2010 -0700 |
committer | Russ Cox <[email protected]> | Mon May 10 16:03:39 2010 -0700 |
tree | 9b5edb27d2bca5d488bf916d9e97571535f354d2 | |
parent | 44cedf54296e0cd4d4fbdb4befeb57ab0f51f59f [diff] |
re2: memory diet Cut unnecessary fields from Regexp and order to align better. Combine smallsub and sub into one field. Changes sizeof(Regexp) - a single node - from 104 to 40 bytes. Use sorted array as permanent representation of character class, avoiding the bloat of STL set<>. Combined with CL 1129043, cuts storage used by a typical RE2 object by about 60%. R=r CC=re2-dev http://codereview.appspot.com/1174041