Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
c0074933
Commit
c0074933
authored
Sep 27, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
edfb66a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
wcfs/internal/xbtree/blib/rangemap.go.in
wcfs/internal/xbtree/blib/rangemap.go.in
+7
-7
No files found.
wcfs/internal/xbtree/blib/rangemap.go.in
View file @
c0074933
...
...
@@ -35,13 +35,13 @@ type RangedMap struct {
//
TODO
rework
to
use
BTree
lo
->
hi_
instead
if
in
practice
in
treediff
,
//
and
other
usage
places
,
N
(
ranges
)
turns
out
to
be
not
small
//
(
i
.
e
.
performance
turns
out
to
be
not
acceptable
)
entryv
[]
m
apEntry
//
lo
↑
entryv
[]
RangeM
apEntry
//
lo
↑
}
//
m
apEntry
represents
one
entry
in
RangedMap
.
type
m
apEntry
struct
{
//
RangeM
apEntry
represents
one
entry
in
RangedMap
.
type
RangeM
apEntry
struct
{
KeyRange
v
alue
VALUE
V
alue
VALUE
}
//
Set
changes
M
to
map
key
k
to
value
v
.
...
...
@@ -346,11 +346,11 @@ func (M *RangedMap) Clear() {
M
.
entryv
=
nil
}
//
All
Rang
es
returns
slice
of
all
key
ranges
in
the
set
.
//
All
Entri
es
returns
slice
of
all
key
ranges
in
the
set
.
//
//
TODO
->
iter
?
func
(
S
*
RangedKeySet
)
AllRanges
()
/*
readonly
*/[]
KeyRange
{
return
S
.
range
v
func
(
M
*
RangedKeySet
)
AllEntries
()
/*
readonly
*/[]
RangeMapEntry
{
return
M
.
entry
v
}
//
XXX
->
ptr
?
...
...
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