This is a doc change request (I think?), and I think the docs are currently readable and that optimization is unnecessary. If someone were extremely concerned with optimization, they would know to make the necessary changes before copying/pasting code out of a tutorial.