Open NijiharaTsubasa opened 6 years ago
I already find out that the problem is the cost of string concatenate on large strings.
But I have no idea how to fix it. I changed the string concatenate to buffer concatenate and it's still slow.
Maybe pre-allocate a big buffer for receive server data and write to it instead of concat strings every time?
I already find out that the problem is the cost of string concatenate on large strings.
But I have no idea how to fix it. I changed the string concatenate to buffer concatenate and it's still slow.
Maybe pre-allocate a big buffer for receive server data and write to it instead of concat strings every time?