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

Faster write of (id)XML #3976

Merged
merged 4 commits into from Feb 21, 2019
Merged

Faster write of (id)XML #3976

merged 4 commits into from Feb 21, 2019

Conversation

cbielow
Copy link
Contributor

@cbielow cbielow commented Feb 20, 2019

even faster writing of idXML (mostly) by avoiding needless copies and using number->string conversion of OpenMS instead of std::ostream.

Also:
[FIX] Fix a bug in ClassTest.h's TEST_FILE_EQUAL(....) which would report the line of the previous TEST_ macro as point of failure, see https://github.com/OpenMS/OpenMS/compare/develop...cbielow:fasterWrites?expand=1#diff-b194e44883fffa6c069caae5d0164329R709

@timosachsenberg
Copy link
Contributor

looks good to me

@cbielow cbielow merged commit cdda28f into OpenMS:develop Feb 21, 2019
if (it2 != proteinid_to_accession_.end())
{
PeptideEvidence pe;
pe.setProteinAccession(it2->second);
peptide_evidences_.push_back(pe);
peptide_evidences_.push_back(std::move(pe));
Copy link
Contributor

Choose a reason for hiding this comment

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

is PeptideEvidence moveable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes it is. If it were not, this would just make it an r-value and copy assignment would kick in.

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

3 participants