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

Performance improvement to cropbox #1210

Merged
merged 1 commit into from
Apr 16, 2015

Conversation

gregjklein
Copy link
Contributor

Move matrix identity checks out of inner loops in cropbox applyFilter to increase performance. Add Google to LICENSE.txt

@@ -3,6 +3,7 @@ Software License Agreement (BSD License)
Point Cloud Library (PCL) - www.pointclouds.org
Copyright (c) 2009-2012, Willow Garage, Inc.
Copyright (c) 2012-, Open Perception, Inc.
Copyright (c) 2015-, Google, Inc.
Copy link
Member

Choose a reason for hiding this comment

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

-1 If you really want Google in there, make it 2015 only.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Thanks for the feedback.

@jspricke
Copy link
Member

Otherwise +1, Thanks!

@taketwo
Copy link
Member

taketwo commented Apr 15, 2015

Where this Google copyright comes from at all?

Also can you please add spaces between function names and braces as required by the style guide? Thanks!

@gregjklein
Copy link
Contributor Author

Thanks for the feedback. I've fixed the style issues and changed LICENSE.txt to only list Google in 2015. @taketwo , as I'm a Google employee, I'd like to add the Google copyright to the LICENSE.txt.

I'm excited to get these changes in, as I've seen the calls I'm making to cropbox improve in speed drastically. Those isIdentity() calls are expensive!

Thanks!

@taketwo
Copy link
Member

taketwo commented Apr 15, 2015

I can see how your changes improve the performance. As such, they are definitely valuable to PCL. However, in my opinion, this contribution is just too small on the library scale in order to add your employer's copyright to the main LICENSE file. If you insist on keeping the copyright, as a compromise I would propose to add it only to the files you actually change. If you grep through PCL codebase you'll see such additional copyrights here and there, so it's a common practice.

@jspricke What do you think? It seems to be more or less in line with @rbrusu's opinion which he expressed in our mail exchange sometime last year.

@gregjklein
Copy link
Contributor Author

@taketwo , that's okay by me.

@taketwo
Copy link
Member

taketwo commented Apr 15, 2015

Great! Could you please squash the commits into a single one? I'll merge then.

@gregjklein
Copy link
Contributor Author

Done! Thanks.

jspricke added a commit that referenced this pull request Apr 16, 2015
Performance improvement to cropbox
@jspricke jspricke merged commit d069447 into PointCloudLibrary:master Apr 16, 2015
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