File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -292,13 +292,8 @@ learn. The following graph compares the old and new implementations:
292
292
293
293
postElm = """
294
294
295
- Things are quite a lot faster! One thing to notice is that you were getting
296
- more modest performance gains when optimizing 0.16 code. This was because the
297
- old API treated keyed nodes like React, forcing the implementation to do a bunch
298
- of silly stuff. What if not every child has a key? What if you put a `key`
299
- inside a `lazy`? The new API rules out these scenarios, simplifying the
300
- implementation a bit. From there, I used the following techniques, which I
301
- think account for the majority of the speed gains:
295
+ Things are quite a lot faster! I think this is mainly attributable to the
296
+ following techniques:
302
297
303
298
- **Prefer arrays over dictionary objects.** Crawling an array is much faster
304
299
than crawling an object. `for (var key in object)` is just never going to be
You can’t perform that action at this time.
0 commit comments