-
Notifications
You must be signed in to change notification settings - Fork 845
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
Migrate std::string APIs to const std::string & #627
Conversation
At least it will take away one bullet point from Roger's slides for the UGM next year. |
It looks like windows build needs to update the library path, where does the build recipe live? LINK : fatal error LNK1104: cannot open file 'libboost_serialization-vc120-mt-1_56.lib' |
It's ok to ignore failures for the appveyor builds. Those are troubled anyway due to the runtime constraints on free appveyor builds |
@@ -118,16 +118,13 @@ namespace RDKit{ | |||
} | |||
} | |||
|
|||
void iterateCIPRanks(const ROMol &mol, DOUBLE_VECT &invars, UINT_VECT &ranks,bool seedWithInvars){ | |||
void iterateCIPRanks(const ROMol &mol, DOUBLE_VECT &invars, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though the changes in this function seem to make sense after a brief review, I don't think they are connected to the const std::string fix that's the actual purpose of the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove this, this is part of another optimization roll up I should have removed from this commit.
The original appveyor build passed if that helps: |
Migrate std::string APIs to const std::string &
Yeah, sorry, this one got lost. |
In rdkit#627, `readAmberTrajectory` in ConformerParser.h is updated to use `const std::string &`. This updates the corresponding method in ConformerParser.cpp to match. I needed to do this to compile RDKit with contrib.
Large ABI breaking migration of std::string API points to const std::string.
This removes a lot of string copies ( in the case of smiles/smarts it removes at least two ).
Special care should be taken to reviewing the smiles/smarts parsers, especially with FLEX/BISON on/off
-DRDK_USE_FLEXBISON=ON
there are a lot of moving parts.