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

change Tracer::dumpContextForLabel into a vstring #1168

Merged
merged 2 commits into from Oct 25, 2013

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Oct 24, 2013

No description provided.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_7_0_X.

change Tracer::dumpContextForLabel into a vstring

It involves the following packages:

FWCore/Services

@smuzaffar, @Dr15Jones, @ktf, @nclopezo can you please review it and eventually sign? Thanks.
@wmtan this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@ktf you are the release manager for this.

@Dr15Jones
Copy link
Contributor

How about changing the parameter name to 'dumpContextForLabels' and changing the internal data structure from std::vectorstd::string to std::setstd::string so we don't have to do a linear lookup.

@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 24, 2013

Will do.

.A

On 24 October 2013 18:09, Chris Jones notifications@github.com wrote:

How about changing the parameter name to 'dumpContextForLabels' and
changing the internal data structure from std::vectorstd::string to
std::setstd::string so we don't have to do a linear lookup.


Reply to this email directly or view it on GitHubhttps://github.com//pull/1168#issuecomment-27005973
.

…ta structure from std::vector<std::string> to std::set<std::string> to avoid the linear lookup
@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 24, 2013

By the way, can someone confirm that the use of std::move on line 47 is correct ?

@cmsbuild
Copy link
Contributor

Pull request #1168 was updated. @smuzaffar, @Dr15Jones, @ktf, @nclopezo can you please check and sign again.

@wmtan
Copy link
Contributor

wmtan commented Oct 24, 2013

My non-expert opinion (I did not write this code)
std::move on line 42 is a performance optimization that allows the string to be moved rather than copied, since the source does not need its contents saved.
it is possible that, since the source is a temp, that the compiler would be smart enough to do the move anyway, but the explicit std::move can't hurt.

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

@nclopezo
Copy link
Contributor

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next IBs unless changes or unless it breaks tests. @ktf can you please take care of it?

ktf added a commit that referenced this pull request Oct 25, 2013
Multithreaded framework -- change Tracer::dumpContextForLabel into a vstring
@ktf ktf merged commit 08028a4 into cms-sw:CMSSW_7_0_X Oct 25, 2013
@ktf
Copy link
Contributor

ktf commented Oct 27, 2013

I think this actually breaks a couple of unit tests:

https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc5_amd64_gcc481/CMSSW_7_0_X_2013-10-27-1400/unitTestLogs/FWCore/Framework

@fwyzard can you have a look?
@nclopezo how come your tests did not pick it up?

@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 28, 2013

Hi Giulio, should be fixed with #1198 , sorry about that, I had only checked the FWCore/Services package itself.

.A

@nclopezo
Copy link
Contributor

Hi All,

I checked and I noticed that when the tests ran, it only checked out FWCore/Services and FWCore/Version, so it didn't run the tests for FWCore/Framework and FWCore/Integration. So it interpreted it as without errors, because the unit test that it ran passed as you can see here:

https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/1009/unitTests.log

cerminar pushed a commit to cerminar/cmssw that referenced this pull request Nov 17, 2023
Phase-2 L1T: Fix GT packed format for Correlator e/gamma and tau objects cms-sw#1168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants