Memory growth algorithm improvement in coreconsole (#7870)
authorRoman Shchekin <mrqtros@gmail.com>
Thu, 10 Nov 2016 00:06:40 +0000 (03:06 +0300)
committerDan Moseley <danmose@microsoft.com>
Thu, 10 Nov 2016 00:06:40 +0000 (16:06 -0800)
commitc637c919adcd0c0d7fcd8818810bcb727408fa51
treeb7373d43cd93da2946348fc605b3a7b97e65e30a
parente76da565c106016d604b95f3bb7eadd24ceaf18a
Memory growth algorithm improvement in coreconsole (#7870)

* Now Append will work properly if strLen is big (for example 3xm_capacity). And value 1.5 is better for memory growth.

* Correct way of calculating 1.5 (without floating point calculation, thanks mikedn)

* After long discussion we decided that simple and aggressive allocation is better for this case
src/coreclr/hosts/coreconsole/coreconsole.cpp