speeding up Compact parser