]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve performance of Unbounded_Wide_Wide_String
authorNicolas Roche <roche@adacore.com>
Wed, 25 Sep 2024 11:21:04 +0000 (13:21 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 4 Nov 2024 15:57:59 +0000 (16:57 +0100)
commitc3df7a67053dfaf22adbaa604e227b42d5d0fe38
tree73fe2555ca8235ddc5e28513087c857e28c15e5e
parentdf3e6245ac6e9b22c4ad0fe3ccaad4bcd95bd3a7
ada: Improve performance of Unbounded_Wide_Wide_String

Improve performance of iteration using Element function.
Improve performance of Append.

gcc/ada/ChangeLog:

* libgnat/a-stzunb__shared.adb: Restructure code to inline only
the most common cases. Remove whenever possible runtime checks.
* libgnat/a-stzunb__shared.ads: Add Inline => True to Append
variants and Element.
gcc/ada/libgnat/a-stzunb__shared.adb
gcc/ada/libgnat/a-stzunb__shared.ads