We are using Ajax.NET in our new project. Most of the issues we had,
has been solved by upgrading to a new version of the assembly.
By using a code profiler we have encountered a serious performance
problem when using JSON serialization.
The problem is located here:

public class JavaScriptString : IJavaScriptObject
Name: AjaxPro.JavaScriptString
Assembly: AjaxPro.JSON.2, Version=6.7.20.1

internal void Append(char c)
{
      this._value = this._value + c;
}

internal void Append(string s)
{
      this._value = this._value + s;
}

The obvious question is; why not use a StringBuilder instead of
appending characters to a string? A quick test shows us:

Appending 8192 characters;
using string += char: 46,845ms
using StringBuilder.Append: 0ms (0 ticks)

When this is done a few times during a request, considerable time is
wasted.

I would like to know if it is possible to resolve this issue in the
near future?

regards,
Trond Nilsen
SuperOffice ASA.


--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to