Modify block data and use loot command or use item command ?

I want the whole player inventory to go down or up one row (basically rotating it entirely). Is it better to modify each slot individually and use a shulker_box with /loot replace to rotate the inventory or to use /item replace from entity @s for each slot ?

Continue to help post