[regex] Remove empty_set

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Wed Nov 3 11:43:00 GMT 2004


Several places use a dummy node_set instead of avoiding loops entirely.
This has a mild (1%) effect on performance and makes the code less clear
IMO, hence this patch.  It also prepares for the following patch.

I took the occasion to clean up sift_states_backward, moving the inner loop
out of the function into a new build_sifted_states.

Paolo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03-regex-remove-empty-set.patch
Type: application/octet-stream
Size: 7983 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20041103/7925f1d3/attachment.obj>


More information about the Libc-alpha mailing list