Telerik Zip Benchmark

Thread is closed for posting
3 posts, 0 answers
  1. CA1567AB-C32D-407F-A10F-35C0B1B5E35A
    CA1567AB-C32D-407F-A10F-35C0B1B5E35A avatar
    15 posts
    Member since:
    Aug 2009

    Posted 30 Jul 2014 Link to this post

    Requirements

    Telerik Product and Version

    UI for WPF Q2 2014
               

    Supported Browsers and Platforms

    Windows

    Components/Widgets used (JS frameworks, etc.)


    PROJECT DESCRIPTION 
    This is a simple WPF MVVM project showing off the Telerik Chart control as well as performance comparison of the Telerik Zip libraries to the DotNetZip libraries located here: http://dotnetzip.codeplex.com/ and the built in Microsoft compression libraries.  The output shows milliseconds of each operation as well as the size of the resulting compressed and subsequently decompressed output.

    The system will load the data from the URL, then run through several compression and decompression routines then display the performance results.

    The system does use a background thread to run the tests as well as async downloading of the file into memory.  The tests can be stopped at any time by clicking the "Stop Tests" after starting.  All functions are located in the PerfDataViewModel.

    Note: Telerik LZMA does not seem to function currently so it is commented out.  I have error handling in the code but when an error occurs the Telerik zip throws an error somewhere inside the zip library.  Uncomment the line TestTelerikLZMA() to see what happens.

    Note 2: Sometimes the chart does not render when running in debug after the tests post their results.  A resize of the window will then cause it to render again.

  2. 8769E797-0787-497A-ACDF-5FCD2648865F
    8769E797-0787-497A-ACDF-5FCD2648865F avatar
    180 posts
    Member since:
    Nov 2022

    Posted 01 Aug 2014 Link to this post

    Hi Ron Barone,

    We appreciate you taking the time to create and submit this code library.

    In Q1 2014 we introduced new API for the ZipLibrary which is way more powerful. The ZipInputStream class is part of the old API that does not support LZMA compression. To be able to decompress files compressed with LZMA method you have to use CommpressedStream class. Here is a sample code you can use:
    CompressedStream zin = new CompressedStream(msCompress, StreamOperationMode.Read, new LzmaSettings());

    We strongly suggest utilizing the new API since other than LZMA compression, it allows working with much bigger files, as well as a lot of bug fixes and other improvements. Additionally, we are planning to mark obsolete the ZipPackage and its related classes in one of our next releases.

    Regards,
    Nikolay Demirev
    Telerik
     
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
     
  3. 19B758F5-E605-485A-B7B6-44A331B48C7C
    19B758F5-E605-485A-B7B6-44A331B48C7C avatar
    990 posts
    Member since:
    Mar 2023

    Posted 19 Aug 2014 Link to this post

    Hello,

    The project has been updated to use the new API of RadZipLibrary and show LZMA compression. 

    Regards,
    Petya
    Telerik
     
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
     
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.