Misko Hevery
d40ee6a259
perf(ivy): improve styling performance ( #33326 )
...
change the existing implementation from using
```
string.split(/\s+/);
```
to a char scan which performers the same thing.
The reason why `split(/\s+/)` is slow is that:
- `/\s+/` allocates new `RegExp` every time this code executes.
- `RegExp` scans are a lot more expensive because they are more powerful.
PR Close #33326
2019-10-23 16:40:12 -07:00
..
2019-10-16 16:36:19 -04:00
2019-10-02 13:04:26 -07:00
2019-10-22 12:00:20 -07:00
2019-10-16 16:36:19 -04:00
2019-07-26 14:04:47 -07:00
2019-04-02 16:07:22 -07:00
2019-10-14 23:08:10 +00:00
2019-10-22 14:35:27 -07:00
2019-05-23 15:09:48 -07:00
2019-08-21 08:27:43 -07:00
2019-10-08 09:23:00 -07:00
2019-10-23 16:40:12 -07:00
2019-10-16 16:36:19 -04:00
2019-03-26 12:50:38 -07:00
2019-10-17 12:50:04 -04:00
2019-10-08 09:23:00 -07:00
2019-10-17 12:50:04 -04:00
2018-10-19 14:35:53 -07:00
2019-07-26 14:04:47 -07:00
2019-10-17 12:50:04 -04:00
2018-10-19 14:35:52 -07:00
2017-08-18 13:23:46 -05:00
2019-05-13 11:13:25 -07:00
2017-03-08 16:29:27 -08:00
2019-10-08 09:23:00 -07:00
2019-10-16 16:36:19 -04:00
2019-09-03 11:55:16 -07:00
2019-10-17 19:45:27 -04:00
2019-01-11 16:24:03 -08:00
2019-01-14 09:55:30 -08:00
2019-01-10 16:31:44 -08:00
2019-10-03 10:24:34 -07:00
2018-10-19 09:23:05 -07:00
2017-03-08 16:29:27 -08:00
2019-03-04 11:47:30 -08:00
2018-10-19 14:35:52 -07:00
2019-10-02 13:04:26 -07:00
2019-10-08 09:23:00 -07:00
2018-10-19 14:35:53 -07:00
2018-09-05 09:35:14 -07:00