<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Default compression level in IPP zlib sample in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823843#M5027</link>
    <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1327461090265="55" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=547447" href="https://community.intel.com/en-us/profile/547447/" class="basic"&gt;Ryan Wong&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;...&lt;I&gt;&lt;P&gt;I noticed this code in the IPP ZLIB sample when comparing with the public zlib 1.2.5 source. Can anyone explain the &lt;SPAN style="text-decoration: underline;"&gt;significance of "avoiding" level 6&lt;/SPAN&gt;?&lt;BR /&gt;...&lt;/P&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Hi Rayn,&lt;BR /&gt;&lt;BR /&gt;Here are some pieces to the "puzzle" I found in '&lt;STRONG&gt;zlib.h&lt;/STRONG&gt;':&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt; #define Z_NO_COMPRESSION  0&lt;BR /&gt; #define Z_BEST_SPEED 1&lt;BR /&gt; #define Z_BEST_COMPRESSION 9&lt;BR /&gt; #define Z_DEFAULT_COMPRESSION (-1)&lt;BR /&gt; /* compression levels */&lt;BR /&gt; ...&lt;BR /&gt;and&lt;BR /&gt; ...&lt;BR /&gt; The compression level must be &lt;STRONG&gt;Z_DEFAULT_COMPRESSION&lt;/STRONG&gt;, or between &lt;STRONG&gt;0&lt;/STRONG&gt; and &lt;STRONG&gt;9&lt;/STRONG&gt;:&lt;BR /&gt; &lt;STRONG&gt;1&lt;/STRONG&gt; gives best speed, &lt;STRONG&gt;9&lt;/STRONG&gt; gives best compression, &lt;STRONG&gt;0&lt;/STRONG&gt; gives no compression at&lt;BR /&gt; all (the input data is simply copied a block at a time).&lt;BR /&gt;  &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;Z_DEFAULT_COMPRESSION&lt;/SPAN&gt;&lt;/STRONG&gt; requests a default compromise between speed and&lt;BR /&gt;  compression &lt;SPAN style="text-decoration: underline;"&gt;( &lt;STRONG&gt;currently equivalent to level 6 &lt;/STRONG&gt;)&lt;/SPAN&gt;.&lt;BR /&gt; ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;&lt;BR /&gt;By enforcing a value'&lt;STRONG&gt;5&lt;/STRONG&gt;' a datacompression will be done a little bit faster with a less degree ofcompression.&lt;BR /&gt;&lt;BR /&gt;It looks like a developer simply didn't want to allowa default compression level( &lt;STRONG&gt;-1&lt;/STRONG&gt; or &lt;STRONG&gt;6&lt;/STRONG&gt; )at all.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Sergey&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2012 03:53:14 GMT</pubDate>
    <dc:creator>SergeyKostrov</dc:creator>
    <dc:date>2012-01-25T03:53:14Z</dc:date>
    <item>
      <title>Default compression level in IPP zlib sample</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823842#M5026</link>
      <description>&lt;P&gt;
I noticed this code in the IPP ZLIB sample when comparing with the public zlib 1.2.5 source. Can anyone explain the significance of "avoiding" level 6? Thanks.
&lt;/P&gt;

&lt;PRE&gt;[cpp]#ifdef IPP_DEFAULT_COMPRESSION
    if ((level == Z_DEFAULT_COMPRESSION) || (level == 6)) level = 5;
#else
[/cpp]&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jan 2012 22:32:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823842#M5026</guid>
      <dc:creator>Ryan_Wong</dc:creator>
      <dc:date>2012-01-24T22:32:29Z</dc:date>
    </item>
    <item>
      <title>Default compression level in IPP zlib sample</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823843#M5027</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1327461090265="55" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=547447" href="https://community.intel.com/en-us/profile/547447/" class="basic"&gt;Ryan Wong&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;...&lt;I&gt;&lt;P&gt;I noticed this code in the IPP ZLIB sample when comparing with the public zlib 1.2.5 source. Can anyone explain the &lt;SPAN style="text-decoration: underline;"&gt;significance of "avoiding" level 6&lt;/SPAN&gt;?&lt;BR /&gt;...&lt;/P&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Hi Rayn,&lt;BR /&gt;&lt;BR /&gt;Here are some pieces to the "puzzle" I found in '&lt;STRONG&gt;zlib.h&lt;/STRONG&gt;':&lt;BR /&gt;&lt;BR /&gt; ...&lt;BR /&gt; #define Z_NO_COMPRESSION  0&lt;BR /&gt; #define Z_BEST_SPEED 1&lt;BR /&gt; #define Z_BEST_COMPRESSION 9&lt;BR /&gt; #define Z_DEFAULT_COMPRESSION (-1)&lt;BR /&gt; /* compression levels */&lt;BR /&gt; ...&lt;BR /&gt;and&lt;BR /&gt; ...&lt;BR /&gt; The compression level must be &lt;STRONG&gt;Z_DEFAULT_COMPRESSION&lt;/STRONG&gt;, or between &lt;STRONG&gt;0&lt;/STRONG&gt; and &lt;STRONG&gt;9&lt;/STRONG&gt;:&lt;BR /&gt; &lt;STRONG&gt;1&lt;/STRONG&gt; gives best speed, &lt;STRONG&gt;9&lt;/STRONG&gt; gives best compression, &lt;STRONG&gt;0&lt;/STRONG&gt; gives no compression at&lt;BR /&gt; all (the input data is simply copied a block at a time).&lt;BR /&gt;  &lt;STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;Z_DEFAULT_COMPRESSION&lt;/SPAN&gt;&lt;/STRONG&gt; requests a default compromise between speed and&lt;BR /&gt;  compression &lt;SPAN style="text-decoration: underline;"&gt;( &lt;STRONG&gt;currently equivalent to level 6 &lt;/STRONG&gt;)&lt;/SPAN&gt;.&lt;BR /&gt; ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;&lt;BR /&gt;By enforcing a value'&lt;STRONG&gt;5&lt;/STRONG&gt;' a datacompression will be done a little bit faster with a less degree ofcompression.&lt;BR /&gt;&lt;BR /&gt;It looks like a developer simply didn't want to allowa default compression level( &lt;STRONG&gt;-1&lt;/STRONG&gt; or &lt;STRONG&gt;6&lt;/STRONG&gt; )at all.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Sergey&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 03:53:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823843#M5027</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-01-25T03:53:14Z</dc:date>
    </item>
    <item>
      <title>Default compression level in IPP zlib sample</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823844#M5028</link>
      <description>&lt;P&gt;Hi Ryan Wong,&lt;/P&gt;&lt;P&gt;To match with Zlib library, IPP Zlib compression levels are changed since form IPP 7.0.&lt;/P&gt;&lt;P&gt;Now level 6 is default as in the Zlib, as Sergey said, to make it faster with a less degree ofcompression enforcing to level 5.&lt;/P&gt;&lt;P&gt;If you want to match as in the previous releases of IPP, just change configuration_table structure.&lt;/P&gt;&lt;P&gt;/* 6 */ {8, 16, 128, 128, deflate_slow},&lt;BR /&gt;/* 5 */ {8, 16, 32, 32, deflate_slow},&lt;BR /&gt;&lt;BR /&gt;#ifdef IPP_DEFAULT_COMPRESSION&lt;BR /&gt; if ((level == Z_DEFAULT_COMPRESSION) || (level == 6)) level = 5;&lt;BR /&gt;#else&lt;BR /&gt; if (level == Z_DEFAULT_COMPRESSION) level = 6;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;New compression levels are described in the article.&lt;/P&gt;&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/ipp_zlib-change-the-default-compression-level-1/"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/en-us/articles/ipp_zlib-change-the-default-compression-level-1/" target="_blank"&gt;http://software.intel.com/en-us/articles/ipp_zlib-change-the-default-compression-level-1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 04:13:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Default-compression-level-in-IPP-zlib-sample/m-p/823844#M5028</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2012-01-25T04:13:13Z</dc:date>
    </item>
  </channel>
</rss>

