Treasurer Jim Chalmers said the quicker the war in the Middle East was resolved, the sooner the global economy could recover.