aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-09-14 20:50:35 +0200
committerFelix Fietkau <nbd@nbd.name>2016-12-26 11:17:32 +0100
commit0090adcd5c94adad2168cd9b338f45827533c81d (patch)
treed96a307b44525cb073daef4c86483b88b4344f18 /target/linux/x86/Makefile
parentd109d03198b4ff31d2e4259228a49fa1b3f10390 (diff)
downloadupstream-0090adcd5c94adad2168cd9b338f45827533c81d.tar.gz
upstream-0090adcd5c94adad2168cd9b338f45827533c81d.tar.bz2
upstream-0090adcd5c94adad2168cd9b338f45827533c81d.zip
opkg: vfork external gzip command to uncompress data
Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/x86/Makefile')
0 files changed, 0 insertions, 0 deletions