core-java
core-java copied to clipboard
Avoid re-creating `TypeUrl`s for already known types
We have a number of calls like TypeUrl.of(msg).getTypeName()
. Each time on of()
we create a new instance of TypeUrl
. We may use known types to cache or create a map of known TypeUrl
s on compile time.