Improvement hex parsing performance