perf(container): optimize loops