[phylo] chunkAlongV for speed boost when there are large number of periods

parent b320e0f2
......@@ -146,8 +146,9 @@ findBounds dates =
toPeriods :: [Date] -> Int -> Int -> [(Date,Date)]
toPeriods dates p s =
let (start,end) = findBounds dates
in map (\dates' -> (head' "toPeriods" dates', last' "toPeriods" dates'))
$ chunkAlong p s [start .. end]
in map (\dates' -> (Vector.head dates', Vector.last dates'))
$ Vector.toList
$ chunkAlongV p s $ Vector.fromList [start .. end]
toFstDate :: [Text] -> Text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment