-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support checksum newData,diffData,oldData; support sf_diff lib call b…
…y Java code(jni) on Windows&Linux; support long path on windows; recode & update libs;
- Loading branch information
Showing
3 changed files
with
52 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
sfpatcher: | ||
Copyright © 2020-2023 housisong. All rights reserved. | ||
sfpatcher为商业软件,使用前必须获得合法授权。对外发布的可执行程序,用于小范围测试评估目的不受限制。 | ||
sfpatcher为商业软件,使用前必须获得合法授权。对外发布的可执行程序软件,非商业授权用户仅可用于小范围内部测试评估目的。 | ||
|
||
----------------------------------------------------------------------------------------- | ||
|
||
|
@@ -182,6 +182,35 @@ for any purpose, commercial or non-commercial, and by any means. | |
|
||
----------------------------------------------------------------------------------------- | ||
|
||
xxHash Library | ||
Copyright (c) 2012-2021 Yann Collet | ||
All rights reserved. | ||
|
||
BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php) | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, this | ||
list of conditions and the following disclaimer in the documentation and/or | ||
other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
----------------------------------------------------------------------------------------- | ||
|
||
This program, "bzip2", the associated library "libbzip2", and all | ||
documentation, are copyright (C) 1996-2019 Julian R Seward. All | ||
rights reserved. | ||
|
@@ -220,4 +249,4 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
Julian Seward, [email protected] | ||
bzip2/libbzip2 version 1.0.8 of 13 July 2019 | ||
|
||
----------------------------------------------------------------------------------------- | ||
----------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# sfpatcher:针对应用商店的apk增量算法 | ||
**v1.0.15 已正式上线**,为亿级手机终端用户提供更新服务,当前最新版本 v1.1.3 | ||
**v1.0.15 已正式上线**,为亿级手机终端用户提供更新服务,当前最新版本 v1.2.0 | ||
[**sfpatcher** 命令行工具下载](https://github.com/sisong/sfpatcher/releases)(支持Windows、Linux、MacOS), | ||
[命令行使用说明](https://github.com/sisong/sfpatcher/blob/master/cmdline_doc.md) | ||
需要商业授权(含源代码&培训),请联系作者: <[email protected]> | ||
|
@@ -118,7 +118,6 @@ | |
|
||
# 测试条件 | ||
在一台笔记本PC上对比测试:Windows11, CPU R9-7945HX, SSD PCIe4.0x4 4T, DDR5 5200MHz 32Gx2 | ||
测试时关闭了HDiffPatch和sfpatcher在diff时的多线程,而开启多线程时一般可以成倍的提高diff速度。 | ||
patch时标注tmpf表示使用了临时文件来储存中间数据;mem表示在内存中执行不使用临时文件;limit表示使用限制内存占用的模式执行;而标注MT表示开启了多线程(8个)并行。 | ||
**BsDiff** v4.3 还是保持着使用bzip2算法压缩补丁。 | ||
**xdelta** v3.1.0 使用`-e -n -f -s`来创建补丁, 而用`-d -f -s`参数来执行的patch。 | ||
|
@@ -251,19 +250,19 @@ sfpatcher补充测试了用ApkNormalized(ApkDiffPatch方案)处理过的apk文 | |
|
||
| 方案|平均压缩率| | ||
|:----|----:| | ||
|sfpatcher-0 lzma2|50.8%| | ||
|sfpatcher-1 lzma2|31.5%| | ||
|sfpatcher-2 lzma2|29.3%| | ||
|sfpatcher-3 lzma2|26.7%| | ||
|sfpatcher-2pre lzma2|81.9%| | ||
|sfpatcher-3pre lzma2|76.6%| | ||
|hdiffz lzma2|50.8%| | ||
|sfpatcher -1 lzma2|31.5%| | ||
|sfpatcher -2 lzma2|29.3%| | ||
|sfpatcher -3 lzma2|26.7%| | ||
|sfpatcher -2 pre lzma2|81.9%| | ||
|sfpatcher -3 pre lzma2|76.6%| | ||
|| | ||
|sfpatcher-0 zstd|50.9%| | ||
|sfpatcher-1 zstd|32.6%| | ||
|sfpatcher-2 zstd|30.7%| | ||
|sfpatcher-3 zstd|28.3%| | ||
|sfpatcher-2pre zstd|86.3%| | ||
|sfpatcher-3pre zstd|82.3%| | ||
|hdiffz zstd|50.9%| | ||
|sfpatcher -1 zstd|32.6%| | ||
|sfpatcher -2 zstd|30.7%| | ||
|sfpatcher -3 zstd|28.3%| | ||
|sfpatcher -2 pre zstd|86.3%| | ||
|sfpatcher -3 pre zstd|82.3%| | ||
|
||
# 节省CDN带宽费用估算(仅供参考) | ||
单个apk一次升级节省的流量估算:用户的安卓手机现在经常使用的应用apk一般都越来越大(游戏平均更大),假设按平均100MB算。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters