mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-21 00:39:54 +00:00
Profiling shows FindMessageByName spending considerable time in strings.LastIndexByte in FindMessageByURL. This overhead can be avoided by giving FindMessageByName its own implementation not pruning the name string up to the last '/' which can not appear in a protobuf name. Change-Id: Ifec07689f72790ead8b7552cd04dd99fa67b61e4 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/240378 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>