optimize method name codec