Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to compile without downloading afresh #1

Closed
nmoinvaz opened this issue Mar 25, 2020 · 1 comment
Closed

Ability to compile without downloading afresh #1

nmoinvaz opened this issue Mar 25, 2020 · 1 comment

Comments

@nmoinvaz
Copy link

It might be a good idea to add an argument with argparse to ./a_compile.py that would not delete and redownload the repositories.

@neurolabusc
Copy link
Owner

neurolabusc commented Mar 25, 2020

See my comments for here.

  1. Run script a_compile.py once only to download and install reference variations of pigz and the testing corpus.
a_compile.py
  1. Download the custom zlib you want to test and modify once, e.g.
git clone --branch fixes/gh-536-wsize https://github.com/nmoinvaz/zlib-ng.git
  1. Compile a new version of the zlib locally and rebuild pigz for this custom library, copying the new copy of pigz to the exe folder. Assuming the previous step created the folder zlib-ng and you want the new version of pigz to be called pigzng the Unix commands are
#!/bin/bash
cd zlib-ng
make clean
./configure --static --zlib-compat
make
cd ../pigz/build
rm -rf *
cmake -DZLIB_IMPLEMENTATION=Custom -DZLIB_ROOT=../../zlib-ng ..
make
cp ./bin/pigz ../../exe/pigzng
  1. Run the scripts b_speed_threads.py, c_decompress.py, d_speed_size.py as desired to test the performance of your local zlib. If you are unhappy, you can edit the files of your zlib and repeat steps 3 and 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants