cache read performance improvements
This commit is contained in:
parent
39c4720e40
commit
f69d3149f3
14 changed files with 140 additions and 71 deletions
|
|
@ -22,6 +22,9 @@ func (q *queue) Add(ph *PreloadHandler, name string, prio int) {
|
|||
for _, p := range *q {
|
||||
if p.Name == name {
|
||||
p.Prio += prio
|
||||
if p.Prio < 0 {
|
||||
p.Prio = 0
|
||||
}
|
||||
q.Sort()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue