Update AESEncryptAlgorithm.java#10830
Conversation
improvement base64 encode decode performance. Totally increase almost over 200%
|
Hi @nanzheng Thanks, If this PR can improve the performance, that will be appreciated. But could you look at non-passed CI tests? |
nanzheng
left a comment
There was a problem hiding this comment.
removed useless import class.
nanzheng
left a comment
There was a problem hiding this comment.
add import DatatypeConverter line
add trycatch
Error: Failed to execute goal on project shardingsphere-infra-optimize: Could not resolve dependencies for project org.apache.shardingsphere:shardingsphere-infra-optimize:jar:5.0.0-RC1-SNAPSHOT: Failed to collect dependencies at org.apache.calcite:calcite-core:jar:1.26.0: Failed to read artifact descriptor for org.apache.calcite:calcite-core:jar:1.26.0: Could not transfer artifact org.apache.calcite:calcite-core:pom:1.26.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/apache/calcite/calcite-core/1.26.0/calcite-core-1.26.0.pom: Connection reset -> [Help 1] |
Codecov Report
@@ Coverage Diff @@
## master #10830 +/- ##
============================================
+ Coverage 65.63% 65.65% +0.01%
Complexity 718 718
============================================
Files 1809 1810 +1
Lines 30925 30927 +2
Branches 5573 5575 +2
============================================
+ Hits 20298 20304 +6
+ Misses 9011 9008 -3
+ Partials 1616 1615 -1
Continue to review full report at Codecov.
|
The error is related with #10810 |
nanzheng
left a comment
There was a problem hiding this comment.
change exception handle
| } | ||
|
|
||
| @SneakyThrows(GeneralSecurityException.class) | ||
| @SneakyThrows |
There was a problem hiding this comment.
Please SneakyThrows accurate exception
nanzheng
left a comment
There was a problem hiding this comment.
change excepiton
|
@nanzheng The checkstyle is failed, I just merge it and revise for you, please pay attention. |
improvement base64 encode decode performance. Totally increase almost over 200%
Fixes apache Base64 encode decode low performance issue.