mirror of
https://github.com/barrucadu/dejafu.git
synced 2024-12-18 19:11:37 +03:00
Take advantage of the fact that tagged is sorted
This commit is contained in:
parent
d4b1ea8bc5
commit
3c1dadffa6
@ -111,8 +111,8 @@ findBacktrack backtrack = go [] [] where
|
||||
go _ bs _ _ = bs
|
||||
|
||||
doBacktrack allThreads enabledThreads bs =
|
||||
let tagged = zip [0..] $ tidTag (fst . _decision) 0 bs
|
||||
idxs = [ (maximum is, u)
|
||||
let tagged = reverse . zip [0..] $ tidTag (fst . _decision) 0 bs
|
||||
idxs = [ (head is, u)
|
||||
| (u, n) <- enabledThreads
|
||||
, v <- allThreads
|
||||
, u /= v
|
||||
|
Loading…
Reference in New Issue
Block a user