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-17 16:10:10 -04:00
2019-05-24 16:55:00 -04:00
2019-10-23 09:56:42 -07:00
2019-10-17 16:46:49 -04:00
2019-10-23 16:40:12 -07:00
2019-10-14 20:27:25 +00:00
2019-08-29 21:51:56 -07:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2019-10-16 16:36:19 -04:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2017-12-21 21:40:58 -08:00
2019-07-23 15:45:32 -07:00
2019-06-05 09:04:13 -07:00
2019-08-29 21:51:56 -07:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2019-08-27 13:57:00 -07:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2019-08-29 21:51:56 -07:00
2019-01-10 16:31:44 -08:00
2019-09-10 06:31:22 -04:00
2019-10-14 20:27:25 +00:00
2019-01-10 16:31:44 -08:00
2019-10-14 23:08:10 +00:00
2019-10-16 16:36:19 -04:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2019-10-14 20:27:25 +00:00
2018-07-31 15:09:32 -07:00
2019-10-14 20:27:25 +00:00
2019-10-09 13:16:55 -07:00