AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Projekte retCompress - schnelle Kompression für strings
Thema durchsuchen
Ansicht
Themen-Optionen

retCompress - schnelle Kompression für strings

Ein Thema von retnyg · begonnen am 23. Jun 2005 · letzter Beitrag vom 26. Aug 2005
Antwort Antwort
Benutzerbild von retnyg
retnyg
Registriert seit: 11. Feb 2005
http://krazz.net/retnyg/retCompress.zip
Zitat:
RetCompress unit
================================================== ===========
author: retnyg @ krazz.net/retnyg
================================================== ===========

License: use this code whereever you want, but keep credits

================================================== ===========

uses a undocumented API of ntdll to compress data.
compression rate is similar to ZIP, but a lot faster.

disadvantage: needs winNT, API may be changed or abandoned
in the future.

i added also the routines Inflate/Deflate, which just
packs sequential #0's, which is quite effective when
packing small exe's.

take also a look at the function HardCodedString, it's
commented out, because it needs the command inttostr,
which is in sysutils. It can be used to Hardcode a binary
string into a delphi app, such as to generate an exe by code.

example application can be found here:
http://www.delphipraxis.net/internal...ct.php?t=54428
( batch2exe, also written by me )

Information about the used Api Commands can be found here:

http://undocumented.ntinternals.net/
 
Benutzerbild von retnyg
retnyg
 
#2
  Alt 26. Aug 2005, 06:02
neu: nun ist ein demo-programm dabei, mit dem man dateien per drag und drop komprimieren kann.
in der form.caption wird dann die erreichte kompression angezeigt.
ein bug wurde beseitigt (bei unkomprimierbaren dateien wie jpg wurden leere files geschrieben)
ausserdem ist nun eine funktion zum komprimieren von dateien vorhanden.

die kompressionsroutine ist rund 15 mal schneller als winRar, und 10 mal schneller als winZip.
dafür werden nicht ganz so hohe kompressionsraten erreicht.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz