http://issues.jabsorb.org/show_bug.cgi?id=59
Summary: escapeJSONString penalizing all platform for Safari's
shortcomings
Product: jabsorb
Version: 1.3
Status: NEW
Keywords: Performance
Severity: enhancement
Priority: medium
Component: scripts
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
jsonrpc.js's escapeJSONString function states:
"The following should suffice but Safari's regex is b0rken" and forgoes the use
of regex, instead using a very slow function *on all platforms*.
The speed difference is roughly 3 orders of magnitude. A simple platform
detection could use the slow version in Safari, and the quick one in the
others.
Calling a method with a rather large string as an argument went from 40 seconds
to 40 milliseconds by uncommenting the revgex version of the function.
--
Configure bugmail: http://issues.jabsorb.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Jabsorb-dev mailing list
[email protected]
http://lists.jabsorb.org/mailman/listinfo/jabsorb-dev