[PATCH] consecutive html tags
David Relson
relson at osagesoftware.com
Mon Feb 3 14:14:37 CET 2003
At 06:59 AM 2/3/03, Matthias Andree wrote:
>David Relson <relson at osagesoftware.com> writes:
>
> > Thinking about reordering earlier, it seemed like a second buffer is
> > needed for efficiency. There is an XOR trick one can use for swapping
> > values without using a temp. It's not immediately which is quicker or
> > easier.
>
>This is not the time for micro-optimizations.
<speculation>
Possibly, the "swap without temp" technique is both simpler and faster and
more reliable. Using a separate "swap buffer" requires that character
counts be used very carefully as text is moved to swap, moved in the main
buffer, then moved from swap to main.
</speculation>
Reordering is not on my todo list. I see other, more interesting things to do.
If someone wants to test reordering and different methods of implementing
it, that's fine by me.
More information about the bogofilter-dev
mailing list