<div dir="ltr">On Mon, Aug 3, 2015 at 7:18 AM, Ian Duncan <span dir="ltr"><<a href="mailto:ian@iankduncan.com" target="_blank">ian@iankduncan.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="h5"><div><p></p></div><div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><span style="font-family:arial,sans-serif;font-size:small;color:rgb(34,34,34)">I’d be interested in knowing about the preliminary work you’re doing here. </span></div></div></div></div></div></blockquote><div><br></div><div>The approach I've tested so far is boiled down into this (rather contrived) example: <a href="https://gist.github.com/wyager/df1809badc7c6a75cd5f">https://gist.github.com/wyager/df1809badc7c6a75cd5f</a></div><div><br></div><div>Without optimization, each add1 adds about 0.37 seconds. With optimization, each add1 adds about 0.16 seconds. That's over twice as fast! Of course, this is very much a "lab environment". </div><div><br></div><div>I suspect you might be able to make the rewrite rules better with a few tricks, but I haven't gotten around to testing them yet.</div><div><br></div><div>--Will</div></div></div></div>