Nix Evaluation Performance: Difference between revisions
imported>Infinisil m Fix numbered list |
imported>Infinisil mNo edit summary |
||
Line 140: | Line 140: | ||
=== Using Thunks to Your Advantage === | === Using Thunks to Your Advantage === | ||
TODO: Explain how to use thunks to avoid duplicating work. | TODO: Explain how to use thunks to avoid duplicating work. Often it makes sense to move let bindings out as far as possible, but sometimes that can even cause extra thunks to be allocated. Show how attribute sets or lists can be used for memoization. |