Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
199
Issues
199
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
f48c9a41
Verified
Commit
f48c9a41
authored
Aug 26, 2025
by
Przemyslaw Kaminski
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[phylo] chunkAlongV for speed boost when there are large number of periods
parent
b320e0f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
PhyloTools.hs
src/Gargantext/Core/Viz/Phylo/PhyloTools.hs
+3
-2
No files found.
src/Gargantext/Core/Viz/Phylo/PhyloTools.hs
View file @
f48c9a41
...
...
@@ -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
...
...
Przemyslaw Kaminski
@cgenie
mentioned in issue
#500
·
Aug 27, 2025
mentioned in issue
#500
mentioned in issue #500
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment