Regarding RetroPie, it's not like there's a choice when there is no official ARM-based version of MAME offered. At least the OP is actually using a recent version (I see references to 0.237 on the GitHub page) instead of hacked up emulation code that is twenty years out of date.
The only official binary version offered is for windows, yet people on osx and linux somehow manage to use unpatched top-of-tree versions. And there *are* people providing arm binaries for current versions, see https://stickfreaks.com/mame/ for instance.
I stand corrected, although the links are still somewhat hidden and the home page itself not really hinting that official (or officially-supported) ARM versions are available. I won't derail this thread any further.