Improvements to efficiency of rest request parsing