Upcoming release of Echo JS SDK v3.0.19 (performance improvements)

14 views
Skip to first unread message

Maksim Terekhin

unread,
Apr 9, 2014, 4:09:27 AM4/9/14
to echo...@googlegroups.com

Hi,

I’m writing to inform you that we are working on the next (v3.0.19) version of Echo JS SDK and the Release Candidate scripts are now available on Echo CDN at the “v3.beta” path:

http://cdn.echoenabled.com/sdk/v3.beta/

As a part of our ongoing efforts to make JS SDK better we decided to conduct SDK components performance audit. We completed a first iteration of the audit and the main highlight of this release is the set of changes performed as a result of the audit. We started with the memory consumption analysis and found a few issues which affect user experience:

  • the main one is incorrect Stream item data deallocation after its destruction. For example if an item was removed from the Stream, some references to an item data (specifically to a target DOM element) were still kept which prevented data garbage-collection by the browser. We updated the code to destroy an item properly which helped us to avoid memory leaks;

  • we also updated Echo.Event library to consume less memory. Since this component is widely used across many apps and plugins, this update should help a lot.

This is just a first step and we plan to perform few more iterations devoted to SDK components performance improvements in the nearest future.

In addition to performance improvements, this release contains some modifications of the base Echo.Control class. We added a new config parameter called refreshOnUserInvalidate, which provides an ability to control an app behavior on user login/logout. Previously if a user logs in/out an app was rebuilt from scratch to reflect that. However we faced a few cases where a complete app rebuilding is unnecessary and even harmful. In order to provide maximum flexibility and leverage complete re-rendering where appropriate, we kept the original logic but now you can control if you want Echo.Control basic functionality to take care of an app refresh or if you want to manage it within an app yourself.

The SDK v3.0.19 is on QA on our side at this moment and we plan to release it to production mid next week.

We strongly encourage you to test your applications against the new version of the JS SDK using the scripts from the “v3.beta” path and let us know if you have any question or faced any problems.

Best regards,
Echo Apps team

Maksim Terekhin

unread,
Apr 16, 2014, 4:03:18 AM4/16/14
to echo...@googlegroups.com
Hi,

I'm writing to inform you that Echo JS SDK v3.0.19 was released today.

The release notes for all Echo JS SDK releases are located here.
Reply all
Reply to author
Forward
0 new messages