improve stringbuilder needed size estimation

This commit is contained in:
UbitUmarov
2020-12-22 03:16:18 +00:00
parent b046b38e69
commit e4d602b7ec

View File

@@ -294,7 +294,7 @@ namespace OpenSim.Data.MySQL
string sqlparams;
if (uuids.Count > 1)
{
StringBuilder sb = new StringBuilder(uuids.Count * 37);
StringBuilder sb = new StringBuilder(uuids.Count * 39 + 5);
sb.Append("IN (");
for(int i = 0; i < uuids.Count - 1; ++i )
{