]> git.ipfire.org Git - thirdparty/zstd.git/commit
Limit train samples (#2809)
authorstanjo74 <stanjo@usa.net>
Tue, 5 Oct 2021 00:47:52 +0000 (17:47 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Oct 2021 00:47:52 +0000 (17:47 -0700)
commit52598d54e98d1de87a8e89c7fc0aa1bfc9b67e16
tree961787dec0428f47f9c500f63be36457734a92d9
parent7868f38019d3e9e83651b5dc4118c4df25440b5f
Limit train samples (#2809)

* Limit training samples size to 2GB

* simplified DISPLAYLEVEL() macro to use global vqriable instead of local.

* refactored training samples loading

* fixed compiler warning

* addressed comments from the pull request

* addressed @terrelln comments

* missed some fixes

* fixed type mismatch

* Fixed bug passing estimated number of samples rather insted of the loaded number of samples.
Changed unit conversion not to use bit-shifts.

* fixed a declaration after code

* fixed type conversion compile errors

* fixed more type castting

* fixed more type mismatching

* changed sizes type to size_t

* move type casting

* more type cast fixes
lib/dictBuilder/cover.c
lib/dictBuilder/fastcover.c
programs/dibio.c
programs/dibio.h
programs/zstdcli.c