Avoid too many resize operations on the hashmap
Comment From: harawata
Thank you for the PR @orangesir , We may need an explanation why we should use 128 and not 64, 256, etc.. Do you have any data that shows the benefit gained by this change?
Comment From: nothingzhl
In general scenarios,the default TypeAliases in Mybatis are enough for us to use。 the default TypeAliases initialization in TypeAliasRegistry constructor and it put about 50 elments into the map,so maybe the 64 is best choose .
Comment From: harawata
Well, the best capacity may depend on the number of type handlers users are using. Let JVM take care of it.
If you could provide data that proves rehashing is actually causing performance issue, we will reconsider.