Skip to content

Commit

Permalink
Boost priority for essential files to allow concurrent requests
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed May 7, 2017
1 parent 438bdbc commit 3f772d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Worker/WorkerManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,16 +391,16 @@ def getPriorityBoost(self, inner_path):
if "-default" in inner_path:
return -4 # Default files are cloning not important
elif inner_path.endswith(".css"):
return 7 # boost css files priority
return 17 # boost css files priority
elif inner_path.endswith(".js"):
return 6 # boost js files priority
return 16 # boost js files priority
elif inner_path.endswith("dbschema.json"):
return 5 # boost database specification
return 15 # boost database specification
elif inner_path.endswith("content.json"):
return 1 # boost included content.json files priority a bit
elif inner_path.endswith(".json"):
if len(inner_path) < 50: # Boost non-user json files more
return 4
return 14
else:
return 2
return 0
Expand Down

0 comments on commit 3f772d1

Please sign in to comment.