GNOME Bugzilla – Bug 336096
Reduce non-shared data in xmlunicode.c
Last modified: 2006-03-27 09:30:59 UTC
Add const to arrays in xmlunicode.c where it makes sense (strings and function pointers in xmlUnicodeBlocks and xmlUnicodeCats will be relocated) That saves about 11kb per process.
Created attachment 62052 [details] [review] patch generate script Patch for xmlunicode.c generate script
Created attachment 62053 [details] [review] xmlunicode.c xmlunicode.c generated with new script
Compilation with full debug options raises a number of warnings like xmlunicode.c:215: warning: initialization discards qualifiers from pointer target type and xmlunicode.c: In function 'xmlUCSIsCatC__internal_alias': xmlunicode.c:2662: warning: passing argument 2 of 'xmlCharInRange__internal_alias' discards qualifiers from pointer target type Seems the types in include/libxml/chvalid.h need to be updated too, I didn;t fixed those yet, so I didn't commited, but otherwise I agree with the intend and method. I also checked there wasn't significant changes in the Unicode data table updates. Still open, need just a bit more work, Daniel
Created attachment 62097 [details] [review] improved patch This patch should compile without (new) warnings.
Right, way better, looks fine, applied and commited, thanks a lot ! Daniel