Skip to content

Commit

Permalink
Merge pull request #10 from terrateamio/pro-586-refactor-reduce-cache…
Browse files Browse the repository at this point in the history
…-sizes

PRO-586 REFACTOR Reduce cache sizes
  • Loading branch information
orbitz authored Oct 9, 2024
2 parents 8d9f214 + 5b61091 commit 1656ffd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions code/src/terrat/terrat_evaluator3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1815,19 +1815,19 @@ module Make (S : S) = struct

let matches =
Matches.create
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 100 }
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 50 }

let access_control_eval_tf_op =
Access_control_eval_tf_op.create
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 100 }
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 50 }

let repo_config =
Repo_config.create
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 100 }
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 50 }

let pull_request =
Pull_request.create
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 100 }
{ Abb_cache.Lru.on_hit = CCFun.const (); on_miss = CCFun.const (); size = 50 }
end

let is_interactive ctx state =
Expand Down
4 changes: 2 additions & 2 deletions code/src/terrat/terrat_github_evaluator3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ module S = struct
{
Abb_cache.Lru.on_hit = on_hit "fetch_file_by_rev";
on_miss = on_miss "fetch_file_by_rev";
size = 1000;
size = 100;
}

let fetch_repo_cache =
Expand All @@ -862,7 +862,7 @@ module S = struct
{
Abb_cache.Lru.on_hit = on_hit "fetch_tree_by_rev";
on_miss = on_miss "fetch_tree_by_rev";
size = 1000;
size = 100;
}
end

Expand Down

0 comments on commit 1656ffd

Please sign in to comment.