You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sd is a C++ class implementing a compressed string dictionary. The class provide
5
5
extract using front coding compression. Front coding compression means that common prefixes are compressed. This makes this string dictionary suitable for compact storage and fast access to a huge amount of strings like URL:s or file paths. Using sd it may be possible to hold a complete dictionary in RAM instead of having to use slower disk-based storage.
6
6
7
7
Note:
8
-
* Strings must be added in strict ascending lexicographic order.
8
+
* Strings should be added in strict ascending lexicographic order. Otherwise compression will be poor and locate won't work.
9
9
* Strings are stored as raw bytes, but '\0' cant't be used in a string because that char is used as string terminator inside the data structure.
10
10
* BUCKET_SIZE may be changed to shift the trade-off between compression level and speed of access. Big BUCKET_SIZE means higher compression but slower access. Sane values are between 16 and 2048.
0 commit comments