-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-emotion-server: refactor inline for performance (#725)
The current version of renderStylesToString is highly inefficient as it allocates new arrays over and over, which isn't necessary. Instead just do a single pass hydrate which improves performance roughly 30x in most scenarios.
- Loading branch information
1 parent
6057202
commit 0847bd2
Showing
1 changed file
with
48 additions
and
51 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