Improve try_parse
and encode
performance
#562
Merged
try_parse
and encode
performance
#562