The issue with repetitive literals is that in groovy they are actually reappeared in memory, whereas in Java, duplicate literals are normalized, creating a single instance. This is a memory issue. If you repeat the same literal more than once, assign it to a variables and reference the variable. It saves memory and does not slow things down at all.