update parser memory allocation