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

BBS: pickle is now a std::vector<char> #2822

Merged
merged 14 commits into from
May 6, 2024
Merged

BBS: pickle is now a std::vector<char> #2822

merged 14 commits into from
May 6, 2024

Conversation

alkino
Copy link
Member

@alkino alkino commented Apr 8, 2024

No description provided.

Copy link

✔️ 9e74c50 -> Azure artifacts URL

@alkino alkino closed this Apr 8, 2024
@alkino alkino reopened this Apr 8, 2024
Copy link

✔️ 9e74c50 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@alkino alkino marked this pull request as draft April 9, 2024 08:06
@alkino alkino marked this pull request as ready for review May 5, 2024 16:59
@alkino alkino closed this May 5, 2024
@alkino alkino reopened this May 5, 2024
Copy link

✔️ 721a81b -> Azure artifacts URL

Copy link

codecov bot commented May 5, 2024

Codecov Report

Attention: Patch coverage is 82.67717% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 67.17%. Comparing base (0a7b890) to head (8f3626e).

❗ Current head 8f3626e differs from pull request most recent head c7309d4. Consider uploading reports for the commit c7309d4 to get more accurate results

Files Patch % Lines
src/parallel/ocbbs.cpp 55.55% 16 Missing ⚠️
src/parallel/bbs.cpp 63.63% 4 Missing ⚠️
src/nrnpython/nrnpy_p2h.cpp 96.07% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2822      +/-   ##
==========================================
- Coverage   67.17%   67.17%   -0.01%     
==========================================
  Files         563      564       +1     
  Lines      104283   104256      -27     
==========================================
- Hits        70056    70033      -23     
+ Misses      34227    34223       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

Copy link

✔️ dd941f7 -> Azure artifacts URL

@alkino alkino requested review from 1uc and JCGoran May 6, 2024 06:47
src/nrnpython/nrnpy_p2h.cpp Outdated Show resolved Hide resolved
src/nrnpython/nrnpy_p2h.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@1uc 1uc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my understanding this PR changes the following:

  • char* is replaced with a std::vector<char>. The choice is because MessageItem needs to destinguish between a pickle (std::vector<char>) and a string (std::string).

This enables a few simplifications, e.g. the size is returned as part of the std::vector. There's one occurrence of where we introduce an additional copy.

Copy link

✔️ be83cff -> Azure artifacts URL

src/nrnpython/nrnpy_p2h.cpp Outdated Show resolved Hide resolved
@bbpbuildbot

This comment has been minimized.

Copy link

✔️ 8f3626e -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@alkino alkino enabled auto-merge (squash) May 6, 2024 13:37
Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
10 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
4.1% Duplication on New Code

See analysis details on SonarCloud

Copy link

✔️ c7309d4 -> Azure artifacts URL

@alkino alkino merged commit 840a7a5 into master May 6, 2024
34 of 35 checks passed
@alkino alkino deleted the cornu/pickle_vector branch May 6, 2024 14:28
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.

3 participants