@@ -5452,9 +5452,10 @@ \subsection{Serialize/deserialize methods}
54525452allocated by the user application, and it must be large enough to hold the
54535453matrix or vector.
54545454
5455- By default, LZ4 compression is used for serialization, but other options can be
5456- selected via the descriptor: \verb'GxB_set (desc, GxB_COMPRESSION, method)',
5457- where \verb'method' is an integer selected from the following options:
5455+ By default, ZSTD (level 1) compression is used for serialization, but other
5456+ options can be selected via the descriptor:
5457+ \verb'GxB_set (desc, GxB_COMPRESSION, method)', where \verb'method' is an
5458+ integer selected from the following options:
54585459
54595460\vspace{0.2in}
54605461{\footnotesize
@@ -5463,10 +5464,10 @@ \subsection{Serialize/deserialize methods}
54635464method & description \\
54645465\hline
54655466\verb'GxB_COMPRESSION_NONE' & no compression \\
5466- \verb'GxB_COMPRESSION_DEFAULT' & LZ4 \\
5467+ \verb'GxB_COMPRESSION_DEFAULT' & ZSTD, with default level 1 \\
54675468\verb'GxB_COMPRESSION_LZ4' & LZ4 \\
54685469\verb'GxB_COMPRESSION_LZ4HC' & LZ4HC, with default level 9 \\
5469- \verb'GxB_COMPRESSION_ZSTD' & ZSTD, with default level 3 \\
5470+ \verb'GxB_COMPRESSION_ZSTD' & ZSTD, with default level 1 \\
54705471\hline
54715472\end{tabular} }
54725473\vspace{0.2in}
@@ -5480,7 +5481,7 @@ \subsection{Serialize/deserialize methods}
54805481 \begin{verbatim}
54815482 GxB_set (desc, GxB_COMPRESSION, GxB_COMPRESSION_LZ4HC + 6) ; \end{verbatim}}
54825483
5483- The ZSTD method can be specified as level 1 to 19, with 3 being the default.
5484+ The ZSTD method can be specified as level 1 to 19, with 1 being the default.
54845485To compress with ZSTD at level 6, use:
54855486
54865487 {\footnotesize
@@ -5580,7 +5581,7 @@ \subsection{Serialize/deserialize methods}
55805581% On output, it is reduced to the numbed of bytes actually used to serialize
55815582% the vector. After calling \verb'GrB_Vector_serialize', the blob may be
55825583% \verb'realloc''d to this revised size if desired (this is optional).
5583- % LZ4 compression is used to construct a compact blob.
5584+ % ZSTD (level 1) compression is used to construct a compact blob.
55845585
55855586%-------------------------------------------------------------------------------
55865587\subsubsection{{\sf GxB\_Vector\_serialize:} serialize a vector}
@@ -5605,10 +5606,9 @@ \subsubsection{{\sf GxB\_Vector\_serialize:} serialize a vector}
56055606
56065607\verb'GxB_Vector_serialize' serializes a vector into a single array of bytes
56075608(the blob), which is \verb'malloc''ed and filled with the serialized vector.
5608- By default, LZ4 compression is used, but other options can be selected
5609- via the descriptor.
5610- Serializing a vector is identical to serializing a matrix;
5611- see Section \ref{matrix_serialize_GxB} for more information.
5609+ By default, ZSTD (level 1) compression is used, but other options can be
5610+ selected via the descriptor. Serializing a vector is identical to serializing
5611+ a matrix; see Section \ref{matrix_serialize_GxB} for more information.
56125612
56135613\newpage
56145614%-------------------------------------------------------------------------------
@@ -5728,7 +5728,7 @@ \subsubsection{{\sf GrB\_Matrix\_serialize:} serialize a matrix}
57285728On output, it is reduced to the numbed of bytes actually used to serialize
57295729the matrix. After calling \verb'GrB_Matrix_serialize', the blob may be
57305730\verb'realloc''d to this revised size if desired (this is optional).
5731- LZ4 compression is used to construct a compact blob.
5731+ ZSTD (level 1) compression is used to construct a compact blob.
57325732
57335733%-------------------------------------------------------------------------------
57345734\subsubsection{{\sf GxB\_Matrix\_serialize:} serialize a matrix}
@@ -5753,7 +5753,7 @@ \subsubsection{{\sf GxB\_Matrix\_serialize:} serialize a matrix}
57535753
57545754\verb'GxB_Matrix_serialize' is identical to \verb'GrB_Matrix_serialize', except
57555755that it does not require a pre-allocated blob. Instead, it allocates the blob
5756- internally, and fills it with the serialized matrix. By default, LZ4
5756+ internally, and fills it with the serialized matrix. By default, ZSTD (level 1)
57575757compression is used, but other options can be selected via the descriptor.
57585758
57595759The blob is allocated with the \verb'malloc' function passed to
@@ -7676,8 +7676,8 @@ \subsection{GraphBLAS descriptors: {\sf GrB\_Descriptor}} %=====================
76767676 value will inform the matrix multiplication to sort its result, instead.
76777677
76787678\item \verb'GxB_COMPRESSION' selects the compression method for serialization.
7679- The default is LZ4 . See Section~\ref{serialize_deserialize} for other
7680- options.
7679+ The default is ZSTD (level 1) . See Section~\ref{serialize_deserialize} for
7680+ other options.
76817681
76827682\item \verb'GxB_IMPORT' informs the \verb'GxB' pack methods
76837683 that they can trust their input data, or not. The default is to trust
@@ -15331,14 +15331,15 @@ \section{Release Notes}
1533115331
1533215332\begin{itemize}
1533315333
15334- \item Version 7.2.0 (Aug 6 , 2022)
15334+ \item Version 7.2.0 (Aug 8 , 2022)
1533515335
1533615336 \begin{packed_itemize}
1533715337 \item added ZSTD as a compression option for serialize/deserialize:
1533815338 Version 1.5.3 by Yann Collet,
1533915339 \url{https://github.com/facebook/zstd.git}.
1534015340 Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
1534115341 Included in SuiteSparse:GraphBLAS via its BSD-3-clause license.
15342+ The default method is now ZSTD, level 1.
1534215343 \item \verb'GxB_Matrix_reshape*' added.
1534315344 \item MATLAB interface: \verb'reshape', \verb'C(:)=A', \verb'C=A(:)' are
1534415345 faster. Better error messages.
0 commit comments