-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Special-cases the serialization of nested attributes to reduce the number of allocations. This avoids having to build up a new hash on each recursive call, and lets us "bypass" a lot of the safety features (such as dangerous attribute sanitation) that Phlex includes when serializing nested attributes on elements (since, in the nested case, we *know* that our key cannot be something like `href` or `onclick`). This should reduce the number of allocations and make the code more performant.
- Loading branch information
Showing
1 changed file
with
45 additions
and
8 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