Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the performance of deepClone when immutability is off? #445

Open
jrust opened this issue Mar 29, 2016 · 1 comment
Open

Improve the performance of deepClone when immutability is off? #445

jrust opened this issue Mar 29, 2016 · 1 comment
Labels

Comments

@jrust
Copy link
Contributor

jrust commented Mar 29, 2016

In production we turn off immutability for performance and I'm wondering if calls to cursor.deepClone() should/could be a no-op? The original intent behind deepClone was to get the object back in a mutable form which is why I'm thinking it could make sense to skip the cloning if it is already mutable.

@Yomguithereal
Copy link
Owner

If you don't need persistence, you can also disable the persistent option and this will improve your performance even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants