Though string concatenation is theoretically faster, in practice
the myriad of calls to String.fromCharCode still seems to create
a lot of waste and cause more GC cycles. Batching these up using
an array and String.fromCharCode.apply produces roughly a 30%
speed-up in most browsers when loading the 1000page.odt document.
Results from benchmark, 1000page.odt:
Chrome 31.0.1650.48
Before: 1953ms
After: 1450ms
Safari 6.1 (7537.71)
Before: 1670ms
After: 1374ms
Firefox 25.0
Before: 2056ms
After: 1722ms
and programs/editor/Translator.js which is a reference
implementations of a translator.
The programs/editor/Translator code is used entirely in
localeditor.js/collabeditor.js and the editor itself, or webodf,
and need not know anything about the translation mechanism.
Translate all strings within the editor and all
user-facing strings in webodf core itself using
runtime.tr();
MemberModel, SessionList, and OperationRouter are proxy classes which use
the server object to communicate with the server, while the server does
not always need to know about them
e.g. some server could not provide a SessionList, while another could have
that and more, while sharing the same basic server protocol.
Thus the serverfactory instance is separated from the server instance.
Even though the server says it's ok to access the Content-Length
field in a CORS request, (and Chrome & Safari work with it), Cocoa's
WebView still refuses to return the proper length.
This prevents a rather strange effect if the arrow keys are held down
for cursor navigation. If the blink is not reset, the cursor fades in
and out while moving to the next/previous position.
IE10 was throwing InvalidStateError when accessing xhr.responseBody property,
and xhr.responseBody is not standard compliant and only used in IE < 9
so make code more standard compliant as per w3c
Previously, attempting to load a module with no manifest.js defined
for the directory the script is executed in would result in node throwing
an "Error: ENOENT, no such file or directory".
With these changes, node will report "Cannot load manifest for …" instead,
allowing it to then fail with the specific module being searched for. This makes
hunting down ordering problems in the compilation a little easier.
Each suite and test now has a link. Pressing the link will add a query to the tests page that will filter out only a particular suite or even a particular test.
The way arguments are passed was wrongly changed and is now back to the state of a few months back when the code was changed to please Closure Compiler.
Now an explicit cast has been added to fix compilation errors.
Closure Compiler now catches a few more insecure parts in the code. The better checks are better checking for nullness of a parameter and better checking of function signatures on overloaded functions.
The found problems have been fixed.