On dynamic memory allocation in sliding-window parallel patterns for streaming analytics