For better caching, have we thought about extracti...
# development
h
For better caching, have we thought about extracting out the core logic from `@console_rule`s into normal `@rule`s so that the only thing the
@console_rule
does is takes the computed information and figures out how to display it? For example,
./pants list
. We could make a rule that computes all the information so that it can get cached. Then, the console rule requests that rule and displays the results
w
all of the heavy lifting of
list
already happens in
@rules
... all it does is print out the list
so if you run
./pants list ::
in Twitter's repo with pantsd it takes ~60 seconds the first time, and ~2 the second
👍 1