Remove quadratic behavior from g_strconcat. (mono/mono#15630)
authorJay Krell <jaykrell@microsoft.com>
Wed, 10 Jul 2019 16:06:51 +0000 (09:06 -0700)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Wed, 10 Jul 2019 16:06:51 +0000 (12:06 -0400)
commit1c504343fd5de8370bec1f255c6a4370443123e4
treeb16b989728de5747a42b61d0854b918a3f2dea65
parentc413bfd943a42e48d3ff4e5d11b6d8721331852f
Remove quadratic behavior from g_strconcat. (mono/mono#15630)

Prefer strlen + memcpy over strcat.

Commit migrated from https://github.com/mono/mono/commit/7a486d8f438434159e1a7f0f8762a76b2faffeac
src/mono/mono/eglib/gstr.c