]> git.ipfire.org Git - thirdparty/zstd.git/commit
removed a bunch of code related to cached literal price
authorYann Collet <cyan@fb.com>
Tue, 28 Nov 2017 20:32:24 +0000 (12:32 -0800)
committerYann Collet <cyan@fb.com>
Tue, 28 Nov 2017 20:32:24 +0000 (12:32 -0800)
commitb71405dc51cd6fb05ea2417ac6ed0516ef24d2f0
treea2f5b5f7011144c2ea793625a44934ee70639166
parent03f30d9dcbb8c20fc239d4a10b5df377ea8dc532
removed a bunch of code related to cached literal price

optState was used both to evaluate price
and to cache cost of previously calculated literals.
This created a strong dependency, forcing parser to request cost in a strict order.
This limitation is forbids future parser with skipping capabilities.

After this patch, caching literals price still exists,
but is now explicit, in a stack structure.
lib/compress/zstd_compress_internal.h
lib/compress/zstd_opt.c