Memory usage decrease on parse of path element