<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 3, 2011, at 4:46 PM, Norbert Hartl wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>how did you measure those numbers? Did you have keep-alive active?&nbsp;</div><div><br></div><div>With keep-alive there is only little more that is happening when doing this redirect scenario. One of the biggest latency factors is initiating a TCP connection. Most pages load quite a few images and such in parallel (today it is 4 concurrent connections or more). From that point the textual transfer of the form and the response shouldn't matter that much. With keep-alive especially that redirect scenario should be well supported. For everything else you need HTTP pipelining which is unfortunately still not used in todays browsers.&nbsp;</div><div><br></div><div>Norbert&nbsp;</div></span></blockquote></div><div><br></div><div>yes, I confirm: this was with the keep-alive header. I'm not sure about the initiating socket thing, this should be confirmed but I guess that just making 2 DNS lookups instead of one is bad enough to eclipse that problem.</div><div><br></div><div>As said, it was just a quick look using the network tab in the dev tools</div><div><br></div><div>here is what you can do to reproduce what I did:</div><div>1. open chrome browser</div><div>2. open an image with a seaside app</div><div>3. open chrome developer tools (like inspecting an element a renderer page)</div><div>4. click on some actions and see the grey bar&nbsp;(method 302 Found type text/html)</div><div>5. for the experience, what matters most is the duration between the start of the 302 and the end of the 200. Take notes of those durations for various actions</div><div>6. close that image and open a copy you can hack with no risk</div><div>7. hack&nbsp;WAActionPhaseContinuation&gt;&gt;#shouldRedirect to shamelessly return false without further thinking</div><div>8. take notes of the numbers you get on the same duration (from start to end of the 200 response) for the same actions</div><div>9. compare</div><div>10. share results</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><a href="http://about.me/sebastianconcept">sebastian</a></div><div><br></div><div>o/</div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>