Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to do fast Zip in c++?

How to do fast Zip in c++?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 0 Offline
    0 Offline
    002comp
    wrote on last edited by
    #1

    Hello Friends I want to zip some files through c++ coding very fast.I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast.And actually reasong behing doing zip fast is bcoz I wanna zip those file after some regular interval of time in my application so thats y I am looking for some fast way of doing zip. Thanks In Advance. Regards Yogesh

    N 1 Reply Last reply
    0
    • 0 002comp

      Hello Friends I want to zip some files through c++ coding very fast.I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast.And actually reasong behing doing zip fast is bcoz I wanna zip those file after some regular interval of time in my application so thats y I am looking for some fast way of doing zip. Thanks In Advance. Regards Yogesh

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      yogeshs wrote:

      .I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast

      What do you mean by that? Have you looked at open source project like GZip[^]? What do you mean by very fast? Do you have a benchmark with existing ZIP libraries and are you sure that you need a compression program faster than that?

      Best wishes, Navaneeth

      E 1 Reply Last reply
      0
      • N N a v a n e e t h

        yogeshs wrote:

        .I am Already using HZIP way to do but I want to do in some not compressed so it can be done fast

        What do you mean by that? Have you looked at open source project like GZip[^]? What do you mean by very fast? Do you have a benchmark with existing ZIP libraries and are you sure that you need a compression program faster than that?

        Best wishes, Navaneeth

        E Offline
        E Offline
        elchupathingy
        wrote on last edited by
        #3

        I think he means the "store" method for say winrar so it doesn't compress the files themselves but just puts them into a single archive. There should be a way to adjust the compression level to 0 and that should speed it up.

        0 1 Reply Last reply
        0
        • E elchupathingy

          I think he means the "store" method for say winrar so it doesn't compress the files themselves but just puts them into a single archive. There should be a way to adjust the compression level to 0 and that should speed it up.

          0 Offline
          0 Offline
          002comp
          wrote on last edited by
          #4

          hello Guys Thanks For ur Reply.Now,currently I am using that open source of that zip.zpp and .h file.And I didnt use gzip.I will look into that but In actual I want that elchupathingy says,I want just winrar as store not compression. Thanks & Regards Yogesh

          0 1 Reply Last reply
          0
          • 0 002comp

            hello Guys Thanks For ur Reply.Now,currently I am using that open source of that zip.zpp and .h file.And I didnt use gzip.I will look into that but In actual I want that elchupathingy says,I want just winrar as store not compression. Thanks & Regards Yogesh

            0 Offline
            0 Offline
            002comp
            wrote on last edited by
            #5

            Hello guys Is any other way to Zip folder with faster way.Is there any other API than GZIP.DO anyone having Idea of using Boost Library? Thanks & Regards Yogesh

            M 1 Reply Last reply
            0
            • 0 002comp

              Hello guys Is any other way to Zip folder with faster way.Is there any other API than GZIP.DO anyone having Idea of using Boost Library? Thanks & Regards Yogesh

              M Offline
              M Offline
              Moak
              wrote on last edited by
              #6

              Hi Yogesh, I had a quick look at the zlib library and there I found in zlib.h (line 183):

              #define Z_NO_COMPRESSION 0
              #define Z_BEST_SPEED 1
              #define Z_BEST_COMPRESSION 9

              Perhaps use a class generating ZIP-files (with zlib as compression library) with the argument Z_NO_COMPRESSION? *untested* /M :)

              Chat in Europe :java: Now with 24% more Twitter

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups