Results 1 to 9 of 9

Thread: Compiling Fastest Binaries

  1. #1
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts

    Compiling Fastest Binaries

    Hi guys,

    Lately I've been working on mastering (or improving) my compiling skills with simple sources.

    I've been playing around with sources of Ilia Muraviev's programs since they are quite easy to compile and don't require any modification/cleaning of the code to compile successfully.

    Attached are sources and my compiles for LZPXJ 1.2h, PX 1.0, and QUAD 1.12.

    I wanted to get some feedback and to see if anyone else could compile even faster binaries. And if so, then I have more to learn. The idea is to compile faster Win32 executables.

    Here are my quick results for compression only with timer 3.01 for ENWIK8:

    LZPXJ 9
    Code:
       ILIA | 26.536s
      COMP1 | 23.151s
    SPEEDUP | 12.76%
    PX
    Code:
       ILIA | 51.246s
      COMP1 | 42.339s
    SPEEDUP | 17.38%
    QUAD -x
    Code:
       ILIA | 16.084s
      COMP1 | 13.790s
    SPEEDUP | 14.26%
    Curious to see how much faster we can go from the expert compilers!
    Attached Files Attached Files

  2. The Following User Says Thank You to comp1 For This Useful Post:

    encode (25th February 2016)

  3. #2
    The Founder encode's Avatar
    Join Date
    May 2006
    Location
    Moscow, Russia
    Posts
    3,954
    Thanks
    359
    Thanked 332 Times in 131 Posts
    These are quite old compiles. So no surprise to me...

  4. #3
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts
    Quote Originally Posted by encode View Post
    These are quite old compiles. So no surprise to me...
    I know the programs are old now but I was using them as a starting point. Size optimization is much easier than speed optimization. As an example, I was able to compile PX to 12.5 KB and only slightly slower than my speed compile.

  5. #4
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Do not know what compilation switches changes did, but probably using latest ICL, GCC or Visual C++ with PGO willl give a boost.

  6. #5
    Member
    Join Date
    May 2008
    Location
    Germany
    Posts
    410
    Thanks
    37
    Thanked 60 Times in 37 Posts
    @comp1: you wrote you want compile fastest binaries - then i am very interested in this "older" program algorithms - but they are parallel algorithms ...

    parallel BZIP2: https://launchpad.net/pbzip2/1.1/1.1...-1.1.13.tar.gz

    in case of PBZIP2 in the past are visible big diffences: http://encode.ru/threads/253-Paralle...ll=1#post11595

    interesting seems too: parallel lzip: http://download.savannah.gnu.org/rel...1.5-rc1.tar.lz

    best regards

  7. #6
    Member
    Join Date
    Mar 2016
    Location
    Smolensk
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And, above me...

    Fastest with/from... to...

    Example: Compiler | target-platform | testet hardware.

  8. #7
    Member snowcat's Avatar
    Join Date
    Apr 2015
    Location
    Vietnam
    Posts
    27
    Thanks
    36
    Thanked 11 Times in 8 Posts
    Can I change the source code?
    My idea is remove c library, only use win api, so printf can't be use...

    ps: much smaller and a little faster

  9. #8
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,612
    Thanks
    30
    Thanked 65 Times in 47 Posts
    Quote Originally Posted by snowcat View Post
    Can I change the source code?
    My idea is remove c library, only use win api, so printf can't be use...

    ps: much smaller and a little faster
    Faster? Show me benchmmark results.

  10. #9
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    323
    Thanks
    174
    Thanked 51 Times in 37 Posts
    Quote Originally Posted by snowcat View Post
    Can I change the source code?
    My idea is remove c library, only use win api, so printf can't be use...

    ps: much smaller and a little faster
    I apologize for replying so late.

    No, the idea is not to change the source code.

    But if you can get a significant performance improvement from your suggested changes, please share the binary and some benchmarks.

    This is not a competition--just a thread to share knowledge and see what improvements can be made in terms of speed.

Similar Threads

  1. Compiling Source Code
    By comp1 in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 10th June 2015, 22:32
  2. Compiling a new corpus
    By nemequ in forum Data Compression
    Replies: 30
    Last Post: 1st April 2015, 13:45
  3. Compiling ZPAQ on Windows with MinGW
    By fcorbelli in forum Data Compression
    Replies: 6
    Last Post: 20th January 2014, 03:29
  4. Compiling PPMd var J1 on Ubuntu
    By Piotr Tarsa in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 18th December 2011, 20:17
  5. can someone help me compiling paq by myself?
    By noshutdown in forum Forum Archive
    Replies: 4
    Last Post: 4th December 2007, 10:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •