Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
bbloom
Commits
7ef20da6
Commit
7ef20da6
authored
Aug 23, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid copying the buffer when deserializing
parent
51623e51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
bbloom.go
bbloom.go
+1
-4
No files found.
bbloom.go
View file @
7ef20da6
...
...
@@ -21,7 +21,6 @@
package
bbloom
import
(
"bytes"
"encoding/binary"
"encoding/json"
"errors"
...
...
@@ -268,9 +267,7 @@ func (bl *Bloom) JSONMarshalTS() ([]byte, error) {
func
JSONUnmarshal
(
dbData
[]
byte
)
*
Bloom
{
bloomImEx
:=
bloomJSONImExport
{}
json
.
Unmarshal
(
dbData
,
&
bloomImEx
)
buf
:=
bytes
.
NewBuffer
(
bloomImEx
.
FilterSet
)
bs
:=
buf
.
Bytes
()
bf
:=
NewWithBoolset
(
bs
,
bloomImEx
.
SetLocs
)
bf
:=
NewWithBoolset
(
bloomImEx
.
FilterSet
,
bloomImEx
.
SetLocs
)
return
bf
}
...
...
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