[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: FW: profiling



One thing I noticed when looking at Unicode normalization is that we
often normalize the same string several times, and often we try to
normalize strings that already are normalized. One possibility would
be for each string to be a struct that contains a pointer to a
normalized copy. It should be NULL until the string is normalized.
Also the normalization code should probably be reworked to allocate
larger chunks. It currently uses a lot of reallocs, when normalizing
a single string, several reallocs might be done. Anyway, I would like
to get more testing of the current code before optimizing it.

Stig