Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace regex with manual string split
Summary: I was doing typechecker, and since some recent changes (likely after D48295588), typechecker became much slower. Instead of 7% overhead, it is 50% overhead. I started looking at profiler. ``` 25.45% buck2-rt [kernel.kallsyms] [k] queued_spin_lock_slowpath ``` Or the same from strobelight: {F1072524306} ([1](https://fburl.com/strobelight/fihizjz9) [2](https://fburl.com/strobelight/8a55kesp)) Obtaining types using documentation is suboptimal. But I need to make it fast now to continue working on typechecker. (Also reported to [regex issue tracker](rust-lang/regex#1066), but they are probably aware of it). (We need to figure out how to work with regular expressions). Reviewed By: iguridi Differential Revision: D48496022 fbshipit-source-id: 5d8113ca014208ab5d1db1750f83792d02462cc5
- Loading branch information