improve mysql sql parser performance