pretty optimize by gperf