Skip to content

Commit b7c38c6

Browse files
committed
auditing pgroups usage
1 parent a5228b4 commit b7c38c6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/tech/v3/dataset/base.clj

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -925,13 +925,14 @@
925925
end-off (.readLong offsets (inc idx))]
926926
(String. string-data start-off (- end-off start-off))))
927927
str-ary (hamf/object-array n-elems)]
928-
(hamf/pgroups n-elems (fn [^long sidx ^long eidx]
929-
(loop [idx sidx]
930-
(when (< idx eidx)
931-
(let [start-off (.readLong offsets idx)
932-
end-off (.readLong offsets (inc idx))]
933-
(aset str-ary idx (String. string-data start-off (- end-off start-off))))
934-
(recur (inc idx))))))
928+
(dorun
929+
(hamf/pgroups n-elems (fn [^long sidx ^long eidx]
930+
(loop [idx sidx]
931+
(when (< idx eidx)
932+
(let [start-off (.readLong offsets idx)
933+
end-off (.readLong offsets (inc idx))]
934+
(aset str-ary idx (String. string-data start-off (- end-off start-off))))
935+
(recur (inc idx)))))))
935936
(StringTable. (ham_fisted.ArrayLists/toList str-ary) nil int-data))
936937
(= version 2)
937938
(let [^List int->str (dtype-list/wrap-container string-table)

src/tech/v3/dataset/string_table.clj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@
3737
^objects rv (make-array String sz)
3838
local-int->str int->str
3939
local-data data]
40-
(dorun
41-
(hamf/pgroups sz (fn string-table-clone [^long sidx ^long eidx]
42-
(loop [sidx sidx]
43-
(when (< sidx eidx)
44-
(ArrayHelpers/aset rv sidx (.get int->str (.getLong local-data sidx)))
45-
(recur (inc sidx)))))))
40+
(dorun (hamf/pgroups sz (fn string-table-clone [^long sidx ^long eidx]
41+
(loop [sidx sidx]
42+
(when (< sidx eidx)
43+
(ArrayHelpers/aset rv sidx (.get int->str (.getLong local-data sidx)))
44+
(recur (inc sidx)))))))
4645
(ArrayLists/toList rv)))
4746
PStrTable
4847
(get-str-table [_this] {:int->str int->str

0 commit comments

Comments
 (0)