-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's only used in `src/core/obj.js` in a handful of places where nowadays a regular JavaScript set works too (the `RefSet` primitive predates the usage of ES6). Not only are built-in data structures often more efficient/optimized, it also avoids having to maintain a custom data structure. Previously, each call to a `RefSet` method would cause `toString` to be called on the given `Ref`. As an additional bonus, using a regular JavaScript set allows us to limit the number of times `toString` is called now, simply by calling it once for `has` and `add` calls, for example. Therefore, this is also more efficient since it avoids the creation of intermediate strings.
- Loading branch information
1 parent
c97200f
commit 84796c4
Showing
3 changed files
with
28 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters