Yes, this is on my local machine, but it went from 700 to 16 milliseconds, so without the speed of your connection it is a great performance plus!!! ;)
On 10/3/06, Jinglecat <[EMAIL PROTECTED]> wrote: > > 16 milliseconds AND 0.5 MB data ? > So crazy result! > Looking forward to the release. > > Michael Schwarz wrote: > > Hi, > > > > I have totally reduced the time on the client-side. Instead of 700 > > milliseconds I have 16 milliseconds on my laptop when running about > > half a MB of data (string). Please see me next release in a couple of > > hours... > > > > Regards, > > Michael > > > > > > > > On 10/3/06, Jinglecat <[EMAIL PROTECTED]> wrote: > > > > > > hi, Michael Schwarz > > > > > > I just have both tested the Asynchornous And Synchornous mode to call > > > AjaxPro.AjaxMethod. > > > But the result has no difference. > > > I think it's the JSON that consumes the 16 seconds(in my case, large > > > string of 90kb), neither the the transfers on the net nor the process > > > on the server. > > > By the way, I test the same data in Atlas, it takes about 30seconds.It > > > seems the JSON in AjaxPro performs much better. > > > > > > I know you have made effort to enhance the AjaxPro JSON here. > > > "AjaxPro JSON serialization about three (3!!!) times faster" > > > http://weblogs.asp.net/mschwarz/archive/2006/09/25/AjaxPro-JSON-serialization-about-three-_2800_3_2100210021002900_-times-faster.aspx > > > It's a good news. > > > But have any alternative ways to pass so long string as a parameter? > > > Another way instead of JSON? > > > > > > Unfortunately, it also effects the onLoading handler. I find the > > > onloading handler seems to be callbacked after the long time JSON > > > operation, So the loading message doesn't display as soon as you invoke > > > the AjaxPro.AjaxMethod. > > > > > > here my code : > > > <script type="text/javascript"> > > > function passLongString() > > > { > > > //processing(true); // hack: why this doesn't make the process > > > display as soon as it is be invoked > > > var str = bigText.innerHTML; // holds a big text of about 90kb > > > size > > > //var start = new Date(); > > > My_LongString.ReceiveLongString(str, passLongString_Callback, > > > null, processing); > > > > > > function passLongString_Callback(res) > > > { > > > //alert(new Date() - start); // this approximately > > > calculates the process duration > > > if(res.error) alert(res.error.Message); > > > else alert("passLongString Operation finished"); > > > > > > } > > > > > > function processing(b) { > > > var ele = $("processingInfo"); > > > ele.style.visibility = (b ? "visible" : "hidden"); // this > > > doesn't work well > > > } > > > } > > > </script> > > > > > > server code: > > > [AjaxPro.AjaxMethod] > > > public string ReceiveLongString(string str) > > > { > > > return null; // do nothing > > > } > > > > > > To correct the process time: about 16seconds not 5s in my case, a very > > > long string of 90kb size. > > > Although AjaxRro JSON has a good performace, I need some better method > > > to reduce the process time. > > > At least, it should leave the loading message work well. > > > > > > Thanks. > > > > > > Jinglecat > > > > > > > > > > > > > > > > > > > -- > > Best regards | Schöne Grüße > > Michael > > > > Microsoft MVP - Most Valuable Professional > > Microsoft MCAD - Certified Application Developer > > > > http://weblogs.asp.net/mschwarz/ > > http://www.schwarz-interactive.de/ > > > > Skype: callto:schwarz-interactive > > MSN IM: [EMAIL PROTECTED] > > > > > -- Best regards | Schöne Grüße Michael Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer http://weblogs.asp.net/mschwarz/ http://www.schwarz-interactive.de/ Skype: callto:schwarz-interactive MSN IM: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info/ Don't forget to read my blog at http://weblogs.asp.net/mschwarz/ -~----------~----~----~----~------~----~------~--~---
