enough-analyst-54434
08/19/2015, 12:53 AMenough-analyst-54434
08/19/2015, 12:54 AMenough-analyst-54434
08/19/2015, 12:54 AMenough-analyst-54434
08/19/2015, 12:55 AMwitty-crayon-22786
08/19/2015, 3:58 PMwitty-crayon-22786
08/19/2015, 3:59 PMwitty-crayon-22786
08/19/2015, 4:01 PMself.invalidated
block into a block per target?witty-crayon-22786
08/19/2015, 4:03 PMbored-art-40741
08/19/2015, 4:07 PMwitty-crayon-22786
08/19/2015, 4:08 PMwitty-crayon-22786
08/19/2015, 4:09 PMinvalidated
block per chunkbored-art-40741
08/19/2015, 4:11 PMinvalidated
calls is I think a good defaultwitty-crayon-22786
08/19/2015, 4:12 PMwitty-crayon-22786
08/19/2015, 4:12 PMhappy-kitchen-89482
08/19/2015, 4:34 PMwitty-crayon-22786
08/19/2015, 4:39 PMwitty-crayon-22786
08/19/2015, 4:39 PMNow that we have a single large chunk arriving in ZincCompile, the {{self.invalidated}} block for compilation will do a single upfront check for all cache entries (thousands potentially), and then begin compiling them, without ever checking the cache again.
There is one advantage to having the check up front: when we hit the cache, we schedule a smaller set of tasks in the execution graph. But otherwise, not checking the cache lazily is a disadvantage.
Two potential approaches to fixing the issue:
# split the invalidation block into the jobs - this might be the cleanest way to solve the problem
# double-check the cache - if we were to re-check the cache inside execution_graph jobs, immediately before attempting to compile, it might give us the best of both worlds
In both cases, we'll have to be cautious of the effects of checking the cache from a background proc. In theory the cache code is all thread safe though.
witty-crayon-22786
08/19/2015, 4:56 PMwitty-crayon-22786
08/19/2015, 4:56 PMenough-analyst-54434
08/19/2015, 5:14 PMwitty-crayon-22786
08/19/2015, 5:15 PMdry-analyst-73584
08/19/2015, 5:41 PMenough-analyst-54434
08/19/2015, 5:46 PMenough-analyst-54434
08/19/2015, 5:48 PMdry-analyst-73584
08/19/2015, 6:05 PMdry-analyst-73584
08/19/2015, 6:06 PMenough-analyst-54434
08/19/2015, 6:07 PMenough-analyst-54434
08/19/2015, 6:07 PMdry-analyst-73584
08/19/2015, 6:10 PMrough-minister-58256
08/19/2015, 6:55 PM