superfly / flyctl

Copy of large value inside loop CRT-P0006
Performance
Major
23 days ago4 years old
each iteration copies 896 bytes (consider pointers or indexing)
 78	}
 79
 80	if apps, err := apiClient.GetApps(ctx, nil); err == nil {
 81		for _, app := range apps { 82			if app.Name == pgPlan.AppName {
 83				attachToExisting = true
 84			}
each iteration copies 896 bytes (consider pointers or indexing)
508
509	var appc *fly.App
510
511	for appi, appt := range apps {512		if strings.HasPrefix(appt.Name, "flyctl-interactive-shells-") {
513			appc = &apps[appi]
514			break