Skip to content

Commit 094d1ad

Browse files
authored
Update README.md
1 parent e2683e7 commit 094d1ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ The easiest way to specify it is to add a section to the `package.json`
8787
| targetTag | string | "styleName" | Allow usage of custom tag name instead of `styleName`
8888
| warning | boolean | false | Enable/disable warning messages
8989

90+
## 🐝 Performance
91+
In simple words, performance is similar to what you would do by having a function that will accept the string of classnames and will convert it to the hashed classnames.
92+
(`Input -> split(' ') -> map -> find each hashed name -> join(' ')`.
93+
This is basically what the injected helper function `getStyleName()` will do. There is no build-time optimization here. But there is optional runtime optimization achieved with memoization. I used the package [memoizee](https://www.npmjs.com/package/memoizee) to do such a thing. Memoization can be turned `off/on` using the config.
94+
9095
## 🛣 Roadmap
9196

9297
- [ ] Improve performance

0 commit comments

Comments
 (0)