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

chore: replace json-stable-stringify with safe-stable-stringify #9683

Merged
merged 1 commit into from Feb 18, 2022

Conversation

BridgeAR
Copy link
Contributor

@BridgeAR BridgeAR commented Oct 31, 2021

This is a performance improvement as the latter is actually faster.

json-stable-stringify x 13,870 ops/sec ±0.72% (94 runs sampled)
safe-stable-stringify x 30,367 ops/sec ±0.39% (96 runs sampled)

The only difference is that objects with circular reference are from now on also accepted instead of throwing an error. That may be configured to still throw an error.

@BridgeAR BridgeAR force-pushed the switch-to-safe-stable-stringify branch from 31d8a67 to 654fb1a Compare October 31, 2021 14:00
@locks locks force-pushed the switch-to-safe-stable-stringify branch from 654fb1a to 3cf3191 Compare February 10, 2022 04:08
@locks locks requested a review from a team February 10, 2022 04:12
This is a performance improvement as the latter is actually faster.

json-stable-stringify x 13,870 ops/sec ±0.72% (94 runs sampled)
safe-stable-stringify x 30,367 ops/sec ±0.39% (96 runs sampled)

The only difference is that objects with circular reference are from
now on also accepted instead of throwing an error.
@locks locks force-pushed the switch-to-safe-stable-stringify branch from 3cf3191 to abf8430 Compare February 18, 2022 10:06
@locks locks enabled auto-merge February 18, 2022 10:10
@locks
Copy link
Contributor

locks commented Feb 18, 2022

Thank you for contributing :) I have enabled auto-merge!

@locks locks merged commit 436e295 into ember-cli:master Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants