andrewplummer/Sugar — Issue #100: Poor cloning performance
Author: inossidabile
Created: 2012-02-02 19:14:10+00:00
State: open

According to this test http://jsperf.com/sugar-js-cloning Sugar.js has a troublesome issue with performance of shallow copy operation.

Object.clone is 2x to 5x (!) slower then JQuery's extend (which is a bit slower then direct implementation but that's affordable and can be reasonable).

Object.merge is 1.5x to 2x slower then JQuery's deep extend.

Moreover Sugar provides no way to do non-deep merge having recursive behavior as the default and that can be frustrating a bit.