Skip to main content
100%

Compression using NT Layer DLL API

✓ Published0🌍 Public
HHugoberry
Last edited Dec 8, 2019
Created on Feb 22, 2020

This example demonstrates the performance of the Windows NT Layer DLL compression routines by benchmarking the `RtlCompressBuffer` and `RtlGetCompressionWorkSpaceSize` functions from `ntdll`. It shows how varying input sizes and compression engines affect the compression ratio and speed, visualizing the trade-off between compressed size and processing time. The code dynamically resolves these APIs at runtime, allocates work-space and output buffers, and writes the original and compressed lengths to an output file. The visualization highlights the raw behavior of these system-level functions without external libraries, relying on standard Windows API calls for file I/O and memory management.

AI-generated description

Similar vizzes