Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu and memory optimization #67

Merged
merged 2 commits into from
Nov 19, 2022
Merged

cpu and memory optimization #67

merged 2 commits into from
Nov 19, 2022

Conversation

yuzawa-san
Copy link
Owner

  • use a arena SegmentAllocator to avoid hitting malloc too often
  • presize builder input outputs
  • hoist OrtValue release to TransactionImpl

@codecov-commenter
Copy link

Codecov Report

Merging #67 (d81b8a5) into master (40e14ef) will decrease coverage by 0.57%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #67      +/-   ##
============================================
- Coverage     80.88%   80.30%   -0.58%     
+ Complexity      311      299      -12     
============================================
  Files            39       39              
  Lines          1135     1102      -33     
  Branches         69       70       +1     
============================================
- Hits            918      885      -33     
  Misses          189      189              
  Partials         28       28              
Impacted Files Coverage Δ
src/main/java/com/jyuzawa/onnxruntime/ApiImpl.java 100.00% <ø> (ø)
...n/java/com/jyuzawa/onnxruntime/OnnxOpaqueImpl.java 0.00% <ø> (ø)
...java/com/jyuzawa/onnxruntime/OnnxOptionalImpl.java 0.00% <ø> (ø)
.../com/jyuzawa/onnxruntime/OnnxTensorStringImpl.java 81.08% <ø> (-2.64%) ⬇️
...in/java/com/jyuzawa/onnxruntime/OnnxValueImpl.java 76.92% <ø> (ø)
...n/java/com/jyuzawa/onnxruntime/TensorInfoImpl.java 100.00% <ø> (ø)
...main/java/com/jyuzawa/onnxruntime/OnnxMapImpl.java 82.81% <100.00%> (-1.91%) ⬇️
...java/com/jyuzawa/onnxruntime/OnnxSequenceImpl.java 71.69% <100.00%> (-3.31%) ⬇️
.../com/jyuzawa/onnxruntime/OnnxTensorBufferImpl.java 100.00% <100.00%> (ø)
...om/jyuzawa/onnxruntime/TransactionBuilderImpl.java 97.91% <100.00%> (-0.05%) ⬇️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@yuzawa-san yuzawa-san merged commit a066012 into master Nov 19, 2022
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.

None yet

2 participants