Skip to content

skip md5 check if hash value is empty - #144

Merged
azhon merged 1 commit into
azhon:mainfrom
thinhbuzz:main
Mar 6, 2023
Merged

skip md5 check if hash value is empty#144
azhon merged 1 commit into
azhon:mainfrom
thinhbuzz:main

Conversation

@thinhbuzz

@thinhbuzzthinhbuzz commented Feb 15, 2023

Copy link
Copy Markdown
Contributor

save the cost of checking md5 when the hash is empty.

@azhon

Copy link
Copy Markdown
Owner

I think check if hash value empty is unnecessary, finally FileUtil.md5(file).equals(manager.apkMD5, ignoreCase = true) always return false.

@thinhbuzz

Copy link
Copy Markdown
ContributorAuthor

@azhon in the current behavior we still need the cost to generate the md5 hash for comparison. with this PR we don't need to generate md5 hash

@azhon

Copy link
Copy Markdown
Owner

@thinhbuzz sure. add this PR in the next version

@azhon
azhon merged commit f401185 into azhon:mainMar 6, 2023
azhon added a commit that referenced this pull request Mar 6, 2023
azhon added a commit that referenced this pull request Mar 6, 2023
azhon added a commit that referenced this pull request Mar 6, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@thinhbuzz@azhon