[Ada] Adjust growth factor from 1/32 to 1/2 for Unbounded_String
authorNicolas Roche <roche@adacore.com>
Mon, 16 Jul 2018 14:08:27 +0000 (14:08 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:08:27 +0000 (14:08 +0000)
commite05a1ce7113ba87b45bb6c950a8ae0bf56c536e3
tree9e64765503469eb32e3d386b0858566f4c462e69
parent0150d9a1cd06feebd2e8efa56e364c8f377fb633
[Ada] Adjust growth factor from 1/32 to 1/2 for Unbounded_String

This will reduce significantly the number of allocations done when
doing consecutive append operations.

2018-07-16  Nicolas Roche  <roche@adacore.com>

gcc/ada/

* libgnat/a-strunb.adb, libgnat/a-strunb__shared.adb: Adjust growth
factor from 1/32 to 1/2 for Unbounded_String.

From-SVN: r262697
gcc/ada/ChangeLog
gcc/ada/libgnat/a-strunb.adb
gcc/ada/libgnat/a-strunb__shared.adb