[PyTorch Edge] Avoid string copying in TypeParser (#64278)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64278
Use c10::string_view and const char* to copy less.
ghstack-source-id: 139468089
Test Plan:
Pixel 3 before: https://www.internalfb.com/intern/aibench/details/132239033718036
Pixel 3 after: https://www.internalfb.com/intern/aibench/details/132239033718036
went from mean of 293 ms to 281 ms.
Reviewed By: dhruvbird
Differential Revision: D30650712
fbshipit-source-id: abad143f2d5cc99a30e8da376c8e37716373032a