Skip to content

Commit

Permalink
update version;
Browse files Browse the repository at this point in the history
  • Loading branch information
sisong committed Aug 19, 2022
1 parent 252e761 commit d295351
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [HPatchLite](https://github.com/sisong/HPatchLite)
[![release](https://img.shields.io/badge/release-v0.4.1-blue.svg)](https://github.com/sisong/HPatchLite/releases)
[![release](https://img.shields.io/badge/release-v0.4.2-blue.svg)](https://github.com/sisong/HPatchLite/releases)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sisong/HPatchLite/blob/main/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/sisong/HPatchLite/pulls)
[![+issue Welcome](https://img.shields.io/github/issues-raw/sisong/HPatchLite?color=green&label=%2Bissue%20welcome)](https://github.com/sisong/HPatchLite/issues)
Expand All @@ -10,9 +10,9 @@

HPatchLite is a lite version of [HDiffPatch](https://github.com/sisong/HDiffPatch), tiny code & ram requirements when patch on MCU,NB-IoT,...

The patch code(ROM occupancy) very small, compiled by Mbed Studio is 664 bytes.
Tip: if define _IS_RUN_MEM_SAFE_CHECK=0 can reduce 74 bytes;
if used tinyuz & define _IS_USED_SHARE_hpatch_lite_types=1, can reduce 52 bytes.
The patch code(ROM occupancy) very small, compiled by Mbed Studio is 670 bytes.
Tip: if used tinyuz & define _IS_USED_SHARE_hpatch_lite_types=1, can reduce 52 bytes;
if define _IS_RUN_MEM_SAFE_CHECK=0, can reduce 74 bytes.

At the same time, the patch memory(RAM occupancy) can also be very small,
RAM size = one decompress memory size + input cache size(>=3Byte) when patch.
Expand Down
8 changes: 4 additions & 4 deletions README_cn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [HPatchLite](https://github.com/sisong/HPatchLite)
[![release](https://img.shields.io/badge/release-v0.4.1-blue.svg)](https://github.com/sisong/HPatchLite/releases)
[![release](https://img.shields.io/badge/release-v0.4.2-blue.svg)](https://github.com/sisong/HPatchLite/releases)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sisong/HPatchLite/blob/main/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/sisong/HPatchLite/pulls)
[![+issue Welcome](https://img.shields.io/github/issues-raw/sisong/HPatchLite?color=green&label=%2Bissue%20welcome)](https://github.com/sisong/HPatchLite/issues)
Expand All @@ -10,9 +10,9 @@

HPatchLite 是 [HDiffPatch](https://github.com/sisong/HDiffPatch) 的一个精简(Lite)版,为在MCU、NB-IoT等小型设备上执行打补丁(patch)功能而优化。

编译后的patch代码(ROM 占用)非常的小,用 Mbed Studio 编译后为 664 字节。
提示:设置宏_IS_RUN_MEM_SAFE_CHECK=0可以节省74字节
如果使用了tinyuz并且设置宏_IS_USED_SHARE_hpatch_lite_types=1,可以节省52字节
编译后的patch代码(ROM 占用)非常的小,用 Mbed Studio 编译后为 670 字节。
提示:如果使用了tinyuz并且设置宏_IS_USED_SHARE_hpatch_lite_types=1,可以节省52字节
设置宏_IS_RUN_MEM_SAFE_CHECK=0,可以节省74字节

同时,patch时内存(RAM 占用)也可以非常的小,
大小为 一个解压缩流需要的内存大小 + patch时输入的缓存区大小(>=3Byte)。
Expand Down
2 changes: 1 addition & 1 deletion hdiffi_import_patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extern "C" {
#endif
#define HPATCHLITE_VERSION_MAJOR 0
#define HPATCHLITE_VERSION_MINOR 4
#define HPATCHLITE_VERSION_RELEASE 1
#define HPATCHLITE_VERSION_RELEASE 2

#define _HPATCHLITE_VERSION HPATCHLITE_VERSION_MAJOR.HPATCHLITE_VERSION_MINOR.HPATCHLITE_VERSION_RELEASE
#define _HDIFFPATCH_QUOTE(str) #str
Expand Down

0 comments on commit d295351

Please sign in to comment.