Skip to content

Improve encryption performance#448

Merged
ikalchev merged 3 commits into
ikalchev:devfrom
bdraco:encryption_cleanups
Jul 31, 2023
Merged

Improve encryption performance#448
ikalchev merged 3 commits into
ikalchev:devfrom
bdraco:encryption_cleanups

Conversation

@bdraco

@bdraco bdraco commented Jul 23, 2023

Copy link
Copy Markdown
Contributor

Every loop would generate a multiple new bytes strings which was quite expensive (more than the encryption itself)

By joining them all together at the end we only have to do it once

@codecov

codecov Bot commented Jul 23, 2023

Copy link
Copy Markdown

Codecov Report

Merging #448 (5f48d9d) into dev (54d174d) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #448      +/-   ##
==========================================
+ Coverage   91.59%   91.62%   +0.03%     
==========================================
  Files          20       20              
  Lines        2176     2184       +8     
  Branches      273      273              
==========================================
+ Hits         1993     2001       +8     
  Misses        139      139              
  Partials       44       44              
Impacted Files Coverage Δ
pyhap/hap_crypto.py 100.00% <100.00%> (ø)

@bdraco bdraco marked this pull request as ready for review July 23, 2023 14:40
@bdraco

bdraco commented Jul 23, 2023

Copy link
Copy Markdown
Contributor Author

@ikalchev Would you be able to get this and #447 in a release before Home Assistant beta on Wednesday?

Thank you!

@ikalchev ikalchev merged commit 20833bc into ikalchev:dev Jul 31, 2023
Sign up for free to 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