Home » Developing U++ » UppHub » String near match algorithm
Re: String near match algorithm [message #24141 is a reply to message #24137] |
Mon, 28 December 2009 16:25   |
 |
koldo
Messages: 3432 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
Definitely Didier String comparison and BSDiff binary file comparison are not comparable, but indeed they are interesting.
Implemented BSDiff in Functions4U, there have been compared original and slightly changed files: theide.exe, a .xls file, a .doc file and a .txt file.
For all of them following appears the size of new file, compressed and bsdiff patch.
This is not a serious benchmark but it seems that, if size really matters, the patch files are much smaller than the .7z compressed files, so BSDiff is doing it very well for binary and for text files too (200 times better in this case) .
See how:
- TheIde.exe size comparison
New version: 4,854,784 bytes
New version .7z compressed: 2,032,605 bytes (42% size reduction)
BSDiff patch file: 284,739 bytes (6% size reduction)
-> So BSDiff file is 7 times smaller than .7z file
- .xls file size comparison
New version: 10,399,232 bytes
New version .7z compressed: 692,397 bytes (7% size reduction)
BSDiff patch file: 3,744 bytes (0.04% size reduction)
-> So BSDiff file is 184 times smaller than .7z file
- .doc file size comparison
New version: 259,072 bytes
New version .7z compressed: 150,212 bytes (58% size reduction)
BSDiff patch file: 3,123 bytes (1% size reduction)
-> So BSDiff file is 48 times smaller than .7z file
- .txt file size comparison
New version: 1,248,891 bytes
New version .7z compressed: 34,461 bytes (3% size reduction)
BSDiff patch file: 174 bytes (0.01% size reduction)
-> So BSDiff file is 198 times smaller than .7z file
Best regards
Koldo
Best regards
IƱaki
[Updated on: Mon, 28 December 2009 17:24] Report message to a moderator
|
|
|
 |
|
String near match algorithm
By: Didier on Fri, 31 July 2009 21:00
|
 |
|
Re: String near match algorithm
By: koldo on Sat, 01 August 2009 10:53
|
 |
|
Re: String near match algorithm
By: Didier on Sat, 01 August 2009 11:56
|
 |
|
Re: String near match algorithm
By: koldo on Sat, 01 August 2009 16:02
|
 |
|
Re: String near match algorithm
By: Didier on Sat, 01 August 2009 16:19
|
 |
|
Re: String near match algorithm
By: Didier on Sun, 02 August 2009 23:39
|
 |
|
Re: String near match algorithm
By: koldo on Mon, 03 August 2009 00:36
|
 |
|
Re: String near match algorithm
|
 |
|
Re: String near match algorithm
By: koldo on Sun, 27 December 2009 08:58
|
 |
|
Re: String near match algorithm
|
 |
|
Re: String near match algorithm
By: koldo on Sun, 27 December 2009 16:37
|
 |
|
Re: String near match algorithm
By: Didier on Mon, 28 December 2009 12:12
|
 |
|
Re: String near match algorithm
By: koldo on Mon, 28 December 2009 16:25
|
 |
|
Re: String near match algorithm
By: Didier on Mon, 28 December 2009 19:27
|
Goto Forum:
Current Time: Sat May 03 23:31:16 CEST 2025
Total time taken to generate the page: 0.01475 seconds
|