wifi sheild sending a data to webserver is very slow

#include <WiFiNINA.h>
#include "arduino_secrets.h" 
#include <SPI.h>
#include <string.h> 
#define _BUFFERSIZE 100

char ssid[] = SECRET_SSID;       
char pass[] = SECRET_PASS;      

int status = WL_IDLE_STATUS;

char server[] = "172.30.1.12";
 


String digit;
String person;

WiFiClient client;

 void setup()
{
  Serial.begin(9600); 
  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to Network named: ");
    Serial.println(ssid);
    status = WiFi.begin(ssid, pass);
    delay(500);
  }
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());
  IPAddress ip = WiFi.localIP();
  IPAddress gateway = WiFi.gatewayIP();
  Serial.print("IP Address: ");
  Serial.println(ip);
}

void loop()
{
 if(Serial.available()){                                      
    String inString = Serial.readStringUntil('\n');           

    int index_1 = inString.indexOf('#');
    int index_2 = inString.length();
    String digit = inString.substring(0, index_1);
    String person = inString.substring(index_1+1, index_2);
    
    int s = digit.length();
    Serial.println(s);
        if(s == 11){
          if(inString.indexOf("#") > 10 )
          {
            if(person.indexOf("#") < 0){
               Serial.println(digit);
               Serial.println(person); 
            }
            else{        
               Serial.println("Wrong Number");
               }
          }
          else{
           Serial.println("Insert #");
          }
        }
    else{
    Serial.println("Wrong Number");
    }
 }
 if (client.connect(server, 80)) {
    
    client.println("POST post.php HTTP/1.1");
    client.println("Host: 172.30.1.12");
    client.println("Content-Type: application/x-www-form-urlencoded;");
    client.print("Content-Length: ");
    client.println(digit.length());
    client.println(person.length());
    client.println();
    client.println(digit);
    client.println(person);
    
  }
  if (client.connected()) {
    client.stop();
  }
  Serial.println(digit);
  Serial.println(person);

  delay(500);
}

this is my code. i use Arduino wIfI uno rev2.
i have a problem about when i connect my personal server with my arduino for sending a data.
i execute this code, i input some String. then monitor present String i entered.
i have set that data is presented by monitor evey 0.5 sencond. but entering data, data is presented about 10 second later…
can i get a solution how to modify code executing i intend?

client.println(digit.length() + person.length());