preallocate memory
preallocate memory

**What this PR does / why we need it:**

Preallocate memory instead of enforcing an incremental growth. This will result in less work for the garbage collector.
tektoncd/pipeline,tektoncd/pipeline