Make x = [x, new] as fast as move_alloc
A Fortran Discourse thread MOVE_ALLOC to grow an array found that
x = [x, new]
is often slower than using move_alloc
Ideally a compiler would produce code for the simpler x = [x, new] syntax that is as fast as move_alloc, since growing an array is common.
Edited by Beliavsky