Tutorial by Examples

Memoizing is basically a way to cache method results. This can be useful when a method is often called with the same arguments and the calculation of the result takes time, therefore increasing performance. Starting from Groovy 2.2, methods can be annoted with the @Memoized annotation. Imagine the...

Page 1 of 1