improve message parsing performance by about 25%