]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
8 years agoupdated NEWS regarding #760
Yann Collet [Thu, 13 Jul 2017 22:34:44 +0000 (15:34 -0700)] 
updated NEWS regarding #760

8 years agoAdd min/max offset to stats
Stella Lau [Thu, 13 Jul 2017 22:29:41 +0000 (15:29 -0700)] 
Add min/max offset to stats

8 years agoadded tests for forced compression level
Paul Cruz [Thu, 13 Jul 2017 21:57:24 +0000 (14:57 -0700)] 
added tests for forced compression level

8 years agoadded additional tests for performance, allowed force compression level for testing...
Paul Cruz [Thu, 13 Jul 2017 21:46:54 +0000 (14:46 -0700)] 
added additional tests for performance, allowed force compression level for testing purposes

8 years ago[ldm] Make some functions shared
Stella Lau [Thu, 13 Jul 2017 21:39:35 +0000 (14:39 -0700)] 
[ldm] Make some functions shared

8 years agoadded some tests for correctness, time, and compression ratio
Paul Cruz [Thu, 13 Jul 2017 20:50:23 +0000 (13:50 -0700)] 
added some tests for correctness, time, and compression ratio

8 years ago[ldm] Switch to using lib/common/mem.h and move typedefs to ldm.h
Stella Lau [Thu, 13 Jul 2017 20:44:48 +0000 (13:44 -0700)] 
[ldm] Switch to using lib/common/mem.h and move typedefs to ldm.h

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Blame Revision:

8 years ago[libzstd] Increase granularity of FSECTable repeat mode
Nick Terrell [Thu, 13 Jul 2017 19:45:39 +0000 (12:45 -0700)] 
[libzstd] Increase granularity of FSECTable repeat mode

8 years ago[ldm] Remove old main files
Stella Lau [Thu, 13 Jul 2017 18:45:00 +0000 (11:45 -0700)] 
[ldm] Remove old main files

8 years ago[ldm] Add TODO and comment for segfaulting in compress function
Stella Lau [Thu, 13 Jul 2017 17:38:19 +0000 (10:38 -0700)] 
[ldm] Add TODO and comment for segfaulting in compress function

8 years agoMerge pull request #759 from terrelln/real-block-split
Yann Collet [Thu, 13 Jul 2017 17:24:19 +0000 (10:24 -0700)] 
Merge pull request #759 from terrelln/real-block-split

[libzstd] Pull CTables into sub-structure

8 years agopolicy change : ZSTDMT automatically caps nbThreads to ZSTDMT_NBTHREADS_MAX (#760)
Yann Collet [Thu, 13 Jul 2017 17:10:13 +0000 (10:10 -0700)] 
policy change : ZSTDMT automatically caps nbThreads to ZSTDMT_NBTHREADS_MAX (#760)

Previously, ZSTDMT would refuse to create the compressor.
Also : increased ZSTDMT_NBTHREADS_MAX to 256,
updated doc,
and added relevant test

8 years agoadded altering dictionary size depending on compression level
Paul Cruz [Thu, 13 Jul 2017 17:15:27 +0000 (10:15 -0700)] 
added altering dictionary size depending on compression level

8 years agoswitched ZSTDMT_compress_advanced() last argument to overlapLog
Yann Collet [Thu, 13 Jul 2017 09:22:58 +0000 (02:22 -0700)] 
switched ZSTDMT_compress_advanced() last argument to overlapLog

overlapRLog (== 9 - overlapLog) was a bit "strange"
as all other public entry points use overlapLog

8 years agoclarified comment on ZSTD_p_contentSizeFlag
Yann Collet [Thu, 13 Jul 2017 09:09:07 +0000 (02:09 -0700)] 
clarified comment on ZSTD_p_contentSizeFlag

8 years ago[libzstd] Pull CTables into sub-structure 759/head
Nick Terrell [Thu, 13 Jul 2017 02:08:24 +0000 (19:08 -0700)] 
[libzstd] Pull CTables into sub-structure

8 years ago[ldm] Add CHAR_OFFSET in hash function and extend header size
Stella Lau [Thu, 13 Jul 2017 01:47:26 +0000 (18:47 -0700)] 
[ldm] Add CHAR_OFFSET in hash function and extend header size

8 years agoMerge pull request #756 from facebook/memOpt
Yann Collet [Thu, 13 Jul 2017 01:32:37 +0000 (18:32 -0700)] 
Merge pull request #756 from facebook/memOpt

Memory optimisations for ZSTDMT

8 years agochanged to stderr
Paul Cruz [Thu, 13 Jul 2017 00:28:53 +0000 (17:28 -0700)] 
changed to stderr

8 years agochanged to malloc, added comment about adaptive compression level, and changed ternar...
Paul Cruz [Thu, 13 Jul 2017 00:10:58 +0000 (17:10 -0700)] 
changed to malloc, added comment about adaptive compression level, and changed ternary operators

8 years agofixed up freeCCtx() removed BYTE since it wasn't being used
Paul Cruz [Wed, 12 Jul 2017 23:50:43 +0000 (16:50 -0700)] 
fixed up freeCCtx() removed BYTE since it wasn't being used

8 years agoadded copyright header, removed clean from makefile
Paul Cruz [Wed, 12 Jul 2017 23:40:24 +0000 (16:40 -0700)] 
added copyright header, removed clean from makefile

8 years ago[ldm] Clean up versions
Stella Lau [Wed, 12 Jul 2017 23:31:31 +0000 (16:31 -0700)] 
[ldm] Clean up versions

8 years agopasses tests with adaptive compression level
Paul Cruz [Wed, 12 Jul 2017 23:18:41 +0000 (16:18 -0700)] 
passes tests with adaptive compression level

8 years agoworking with fixed compression level and fixed dictionary size
Paul Cruz [Wed, 12 Jul 2017 23:02:20 +0000 (16:02 -0700)] 
working with fixed compression level and fixed dictionary size

8 years ago[ldm] Clean up code
Stella Lau [Wed, 12 Jul 2017 22:11:06 +0000 (15:11 -0700)] 
[ldm] Clean up code

8 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Wed, 12 Jul 2017 21:38:36 +0000 (14:38 -0700)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

8 years agoslightly increased buffer pool, to cover normal "full load" scenarios 756/head
Yann Collet [Wed, 12 Jul 2017 21:23:34 +0000 (14:23 -0700)] 
slightly increased buffer pool, to cover normal "full load" scenarios

2 buffers per active worker
+ 1 buffer for input loading
+ 1 buffer for "next input" when submitting current one
+ 1 buffer stuck in queue

8 years agoworking with flush job->src.size and fixed cLevel
Paul Cruz [Wed, 12 Jul 2017 19:21:21 +0000 (12:21 -0700)] 
working with flush job->src.size and fixed cLevel

8 years agoFix sumToHash to use hash space more efficiently
Stella Lau [Wed, 12 Jul 2017 17:53:19 +0000 (10:53 -0700)] 
Fix sumToHash to use hash space more efficiently

8 years agoMinor fix for non-rolling hash
Stella Lau [Wed, 12 Jul 2017 16:50:24 +0000 (09:50 -0700)] 
Minor fix for non-rolling hash

8 years agoSwitch to using rolling hash only
Stella Lau [Wed, 12 Jul 2017 16:47:00 +0000 (09:47 -0700)] 
Switch to using rolling hash only

8 years agoUpdate rolling hash
Stella Lau [Wed, 12 Jul 2017 01:13:26 +0000 (18:13 -0700)] 
Update rolling hash

8 years agofix : ZSTDMT_compress_advanced() correctly generates checksum
Yann Collet [Wed, 12 Jul 2017 00:18:26 +0000 (17:18 -0700)] 
fix : ZSTDMT_compress_advanced() correctly generates checksum

when params.fParams.checksumFlag==1.
This use case used to be impossible when only ZSTD_compress() was available

8 years agoadded debug statement
Paul Cruz [Tue, 11 Jul 2017 23:50:50 +0000 (16:50 -0700)] 
added debug statement

8 years agorelease input buffers from inside worker thread
Yann Collet [Tue, 11 Jul 2017 22:56:40 +0000 (15:56 -0700)] 
release input buffers from inside worker thread

buffers are released sooner, which makes them available faster for next job.
=> decreases total nb of buffers necessary

8 years agochanged dictionary size, added debugging statements
Paul Cruz [Tue, 11 Jul 2017 22:49:52 +0000 (15:49 -0700)] 
changed dictionary size, added debugging statements

8 years agobuffer pool : all buffers have same size
Yann Collet [Tue, 11 Jul 2017 22:17:25 +0000 (15:17 -0700)] 
buffer pool : all buffers have same size

to reduce memory fragmentation.
They can be used for in or out, interchangeably.

8 years agoupdated DEBUG statements
Paul Cruz [Tue, 11 Jul 2017 22:15:41 +0000 (15:15 -0700)] 
updated DEBUG statements

8 years agoadded error message, updated copying dictionary into the input buffer
Paul Cruz [Tue, 11 Jul 2017 22:00:52 +0000 (15:00 -0700)] 
added error message, updated copying dictionary into the input buffer

8 years agozstdmt : intermediate outBuffer allocated from within worker
Yann Collet [Tue, 11 Jul 2017 21:59:10 +0000 (14:59 -0700)] 
zstdmt : intermediate outBuffer allocated from within worker

reduces total amount of memory needed,
since jobs in queue do not have an outBuffer pre-reserved now

8 years agobuffer pool can be invoked from multiple threads
Yann Collet [Tue, 11 Jul 2017 21:14:07 +0000 (14:14 -0700)] 
buffer pool can be invoked from multiple threads

8 years agoMerge pull request #755 from jacquesg/solaris
Yann Collet [Tue, 11 Jul 2017 19:11:44 +0000 (12:11 -0700)] 
Merge pull request #755 from jacquesg/solaris

Solaris fix

8 years agochanged to using ZSTD_compressBegin_usingDict() and fixed strange issue with ZSTD_com...
Paul Cruz [Tue, 11 Jul 2017 18:50:00 +0000 (11:50 -0700)] 
changed to using ZSTD_compressBegin_usingDict() and fixed strange issue with ZSTD_compressContinue()

8 years agofix missing symbol 'nanosleep' for Solaris 755/head
Jacques Germishuys [Tue, 11 Jul 2017 17:25:14 +0000 (19:25 +0200)] 
fix missing symbol 'nanosleep' for Solaris

8 years agofixed an error where -c argument wasn't working for single files
Paul Cruz [Tue, 11 Jul 2017 17:23:25 +0000 (10:23 -0700)] 
fixed an error where -c argument wasn't working for single files

8 years agoSave v3
Stella Lau [Tue, 11 Jul 2017 16:23:44 +0000 (09:23 -0700)] 
Save v3

8 years agozstdmt: removed margin for improved memory usage
Yann Collet [Tue, 11 Jul 2017 15:54:29 +0000 (08:54 -0700)] 
zstdmt: removed margin for improved memory usage

8 years agoAdd rolling hash
Stella Lau [Tue, 11 Jul 2017 05:27:43 +0000 (22:27 -0700)] 
Add rolling hash

8 years agomade some progress on improving compression ratio, but problems exist with speed...
Paul Cruz [Tue, 11 Jul 2017 01:16:42 +0000 (18:16 -0700)] 
made some progress on improving compression ratio, but problems exist with speed limits, and for some reason higher compression levels are really slow

8 years agoimproved ZSTDMT_compress() memory usage
Yann Collet [Tue, 11 Jul 2017 00:16:41 +0000 (17:16 -0700)] 
improved ZSTDMT_compress() memory usage

does not need the input buffer for streaming operations

also : reduced a few tests time length

8 years agooptimized memory usage for ZSTDMT_compress()
Yann Collet [Mon, 10 Jul 2017 23:30:55 +0000 (16:30 -0700)] 
optimized memory usage for ZSTDMT_compress()

Previously, each job would reserve a CCtx right before being posted.
The CCtx would be "part of the job description",
and only released when the job is completed (aka flushed).
For ZSTDMT_compress(), which creates all jobs first and only join at the end,
that meant one CCtx per job.
The nb of jobs used to be == nb of threads,
but since latest modification,
which reduces the size of jobs in order to spread the load of difficult areas,
it also increases the nb of jobs for large sources / small compression level.
This resulted in many more CCtx being created.

In this new version, CCtx are reserved within the worker thread.
It guaranteea there cannot be more CCtx reserved than workers (<= nb threads).

To do that, it required to make the CCtx Pool multi-threading-safe :
it can now be called from multiple threads in parallel.

8 years agochanged how the detection of the last job works
Paul Cruz [Mon, 10 Jul 2017 23:27:58 +0000 (16:27 -0700)] 
changed how the detection of the last job works

8 years agodst buffer should use ZSTD_compressBound to determine how much space it needs
Paul Cruz [Mon, 10 Jul 2017 23:10:19 +0000 (16:10 -0700)] 
dst buffer should use ZSTD_compressBound to determine how much space it needs

8 years agofixed memory leak that was happening when creating jobs
Paul Cruz [Mon, 10 Jul 2017 23:03:09 +0000 (16:03 -0700)] 
fixed memory leak that was happening when creating jobs

8 years agoClean up and refactor compress function
Stella Lau [Mon, 10 Jul 2017 22:48:47 +0000 (15:48 -0700)] 
Clean up and refactor compress function

8 years agomade input buffer an internal part of the compression context
Paul Cruz [Mon, 10 Jul 2017 22:37:14 +0000 (15:37 -0700)] 
made input buffer an internal part of the compression context

8 years agofix : custom allocator correctly propagated to child contexts
Yann Collet [Mon, 10 Jul 2017 21:21:40 +0000 (14:21 -0700)] 
fix : custom allocator correctly propagated to child contexts

8 years agoextended fuzzer MT memory tests
Yann Collet [Mon, 10 Jul 2017 21:09:16 +0000 (14:09 -0700)] 
extended fuzzer MT memory tests

8 years agofix : propagate custom allocator to ZSTDMT though ZSTD_CCtx_setParameter()
Yann Collet [Mon, 10 Jul 2017 21:02:33 +0000 (14:02 -0700)] 
fix : propagate custom allocator to ZSTDMT though ZSTD_CCtx_setParameter()

also : compile fuzzer with MT enabled

8 years agoadded --memtest to fuzzer
Yann Collet [Mon, 10 Jul 2017 20:48:41 +0000 (13:48 -0700)] 
added --memtest to fuzzer

8 years agoAdd warning flags to makefile and clean up code to remove warnings
Stella Lau [Mon, 10 Jul 2017 20:08:19 +0000 (13:08 -0700)] 
Add warning flags to makefile and clean up code to remove warnings

8 years agoAdd compression context
Stella Lau [Mon, 10 Jul 2017 19:38:27 +0000 (12:38 -0700)] 
Add compression context

8 years agoadded ZSTD_sizeof_CCtx() test
Yann Collet [Mon, 10 Jul 2017 19:29:57 +0000 (12:29 -0700)] 
added ZSTD_sizeof_CCtx() test

8 years agorenamed pool.c to poolTests.c 761/head
Paul Cruz [Mon, 10 Jul 2017 18:32:30 +0000 (11:32 -0700)] 
renamed pool.c to poolTests.c

8 years agosmall changes
Paul Cruz [Mon, 10 Jul 2017 18:10:11 +0000 (11:10 -0700)] 
small changes

8 years agochanged name
Paul Cruz [Mon, 10 Jul 2017 18:05:37 +0000 (11:05 -0700)] 
changed name

8 years agoremoved single from Makefile
Paul Cruz [Mon, 10 Jul 2017 17:58:03 +0000 (10:58 -0700)] 
removed single from Makefile

8 years agoremoved scripts
Paul Cruz [Mon, 10 Jul 2017 17:53:02 +0000 (10:53 -0700)] 
removed scripts

8 years agoremoved single.c
Paul Cruz [Mon, 10 Jul 2017 17:51:50 +0000 (10:51 -0700)] 
removed single.c

8 years agoupdated error checking in each thread
Paul Cruz [Mon, 10 Jul 2017 16:36:22 +0000 (09:36 -0700)] 
updated error checking in each thread

8 years agoAdd LDM_DCtx
Stella Lau [Mon, 10 Jul 2017 14:38:09 +0000 (07:38 -0700)] 
Add LDM_DCtx

8 years agoMinor refactoring
Stella Lau [Mon, 10 Jul 2017 13:50:49 +0000 (06:50 -0700)] 
Minor refactoring

8 years agoMerge branch 'ldm' of https://github.com/stellamplau/zstd into ldm
Stella Lau [Mon, 10 Jul 2017 13:32:46 +0000 (06:32 -0700)] 
Merge branch 'ldm' of https://github.com/stellamplau/zstd into ldm

8 years agoMinor refactoring
Stella Lau [Mon, 10 Jul 2017 13:32:29 +0000 (06:32 -0700)] 
Minor refactoring

8 years agoAdd folder for old versions
Stella Lau [Mon, 10 Jul 2017 13:32:05 +0000 (06:32 -0700)] 
Add folder for old versions

8 years agoUpdate mainfile
Stella Lau [Mon, 10 Jul 2017 05:45:54 +0000 (22:45 -0700)] 
Update mainfile

8 years agobumped version nb to v1.3.1
Yann Collet [Sat, 8 Jul 2017 11:55:09 +0000 (04:55 -0700)] 
bumped version nb to v1.3.1

8 years agofixed several conversion warnings
Yann Collet [Sat, 8 Jul 2017 00:13:12 +0000 (17:13 -0700)] 
fixed several conversion warnings

8 years agoAdd compression statistics
Stella Lau [Sat, 8 Jul 2017 00:09:28 +0000 (17:09 -0700)] 
Add compression statistics

8 years agoadded ability to compress without specifying out filename
Paul Cruz [Sat, 8 Jul 2017 00:07:05 +0000 (17:07 -0700)] 
added ability to compress without specifying out filename

8 years agoremoved zbufftest from list of `all` tests
Yann Collet [Fri, 7 Jul 2017 23:16:14 +0000 (16:16 -0700)] 
removed zbufftest from list of `all` tests

8 years agofixed minor Visual compilation limitation
Yann Collet [Fri, 7 Jul 2017 23:14:17 +0000 (16:14 -0700)] 
fixed minor Visual compilation limitation

8 years agofixed minor cast warning
Yann Collet [Fri, 7 Jul 2017 23:09:47 +0000 (16:09 -0700)] 
fixed minor cast warning

8 years agoplaying around with adapt param
Paul Cruz [Fri, 7 Jul 2017 22:56:00 +0000 (15:56 -0700)] 
playing around with adapt param

8 years agotarget gpptest uses CXX environment variable
Yann Collet [Fri, 7 Jul 2017 22:55:41 +0000 (15:55 -0700)] 
target gpptest uses CXX environment variable

8 years agoMerge branch 'dev' of github.com:facebook/zstd into dev
Yann Collet [Fri, 7 Jul 2017 22:53:20 +0000 (15:53 -0700)] 
Merge branch 'dev' of github.com:facebook/zstd into dev

8 years agonew field frameHeader.headerSize
Yann Collet [Fri, 7 Jul 2017 22:51:24 +0000 (15:51 -0700)] 
new field frameHeader.headerSize

8 years agorewrote time elapsed with UTIL
Paul Cruz [Fri, 7 Jul 2017 22:42:20 +0000 (15:42 -0700)] 
rewrote time elapsed with UTIL

8 years agoZSTD_getFrameHeader : control of windowSize limits is delegated to caller
Yann Collet [Fri, 7 Jul 2017 22:32:12 +0000 (15:32 -0700)] 
ZSTD_getFrameHeader : control of windowSize limits is delegated to caller

Extracting frame header is a separate operation.
It's now possible to get frame header, whatever the window size set in it.

8 years agonew field : ZSTD_frameHeader.frameType
Yann Collet [Fri, 7 Jul 2017 22:21:35 +0000 (15:21 -0700)] 
new field : ZSTD_frameHeader.frameType

Makes frame type (zstd,skippable) detection more straighforward.
ZSTD_getFrameHeader set frameContentSize=ZSTD_CONTENTSIZE_UNKNOWN to mean "field not present"

8 years agochanged to using compressCCtx
Paul Cruz [Fri, 7 Jul 2017 22:13:40 +0000 (15:13 -0700)] 
changed to using compressCCtx

8 years ago[ldm] Update to hash every position
Stella Lau [Fri, 7 Jul 2017 21:52:40 +0000 (14:52 -0700)] 
[ldm] Update to hash every position

8 years agoextended frameHeader.windowSize to unsigned long long
Yann Collet [Fri, 7 Jul 2017 21:19:01 +0000 (14:19 -0700)] 
extended frameHeader.windowSize to unsigned long long

8 years agoFix offset overflow bug
Stella Lau [Fri, 7 Jul 2017 21:14:01 +0000 (14:14 -0700)] 
Fix offset overflow bug

8 years agochanged completed -> compressed
Paul Cruz [Fri, 7 Jul 2017 20:55:38 +0000 (13:55 -0700)] 
changed completed -> compressed

8 years agochanged completed variables to compressed for clarity
Paul Cruz [Fri, 7 Jul 2017 20:18:55 +0000 (13:18 -0700)] 
changed completed variables to compressed for clarity

8 years agoAdd header with compress and decompress size
Stella Lau [Fri, 7 Jul 2017 19:44:29 +0000 (12:44 -0700)] 
Add header with compress and decompress size

8 years agoremoved unnecessary comments, uncommented DEBUGLOG for later use
Paul Cruz [Fri, 7 Jul 2017 18:47:16 +0000 (11:47 -0700)] 
removed unnecessary comments, uncommented DEBUGLOG for later use

8 years agoadded ability to force output to stdout, wrote an additional test for this functionality
Paul Cruz [Fri, 7 Jul 2017 18:32:14 +0000 (11:32 -0700)] 
added ability to force output to stdout, wrote an additional test for this functionality