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-22 12:00:21 -07:00
2019-10-17 16:10:10 -04:00
2019-10-22 12:00:21 -07:00
2019-07-18 14:21:26 -07:00
2019-10-17 16:10:10 -04:00
2019-10-16 16:36:19 -04:00
2019-09-03 11:59:39 -07:00
2019-10-17 16:10:10 -04:00
2019-10-17 16:10:10 -04:00
2019-07-01 10:11:08 -07:00
2019-10-23 16:40:12 -07:00
2019-08-15 10:30:12 -07:00
2019-10-14 23:08:10 +00:00
2019-03-26 12:50:38 -07:00
2019-03-27 12:36:23 -07:00
2019-10-16 16:36:19 -04:00
2019-10-04 11:48:12 -07:00
2018-11-07 10:35:20 -08:00
2017-12-22 13:10:51 -08:00
2019-09-17 13:32:06 -07:00
2019-10-18 13:15:16 -04:00
2019-09-12 15:35:34 -07:00
2018-11-30 13:41:21 -08:00
2017-12-22 13:10:51 -08:00
2018-12-03 08:19:56 -08:00
2019-01-14 09:55:30 -08:00
2018-02-06 07:56:33 -08:00
2019-10-17 12:50:04 -04:00
2019-09-09 19:10:54 -04:00
2019-08-29 21:51:56 -07:00
2018-10-17 13:08:14 -07:00
2019-10-16 16:36:19 -04:00
2019-02-21 07:46:21 -08:00
2019-01-10 16:31:44 -08:00