-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
speeding up saving to .obj and .ply #1580
speeding up saving to .obj and .ply #1580
Conversation
…aveVTKFile by replacing std::endl with '\n'
It does not improve anything on my machine. |
@VictorLamoine While you're at it, do you mind testing it in release mode? |
Exactly the same results! |
That is very strange, I've tested the following on Linux, Windows and OSX across different machines, but in all cases, this patch sped up the save function between 2 and 20 times (on SSD the speedup is around 2-3 while much higher on the SATA disks).
Could you try to run this test-code to see if it makes a difference? And what setup are you using? |
If a third opinion helps, I get the following in Debug mode: time for old_saveOBJFile = 1363ms And in Release: time for old_saveOBJFile = 1335ms My system: $ lsb_release -a $ uname -a $ cat /proc/cpuinfo | grep Intel On Wed, Apr 6, 2016 at 1:12 AM, muscipula notifications@github.com wrote:
|
The test code is working faster, I'll test again your patch and make sure I'm not making anything stupid. Here are my results:
Ubuntu 14.04 (Kernel 3.16) |
For info, on Project Tango Tablet Development Kit:
~10 times faster! |
Good to hear that the test code does speedup the save function, even on Project tango! |
I confirm the improvement results;
With bigger point clouds;
I've tested on several platforms and this fix never lowers the performance. 👍 for merging |
speeding up saving to .obj and .ply
By replacing std::endl with '\n', saving to disk can be sped up by roughly 15 times.
Issue: #1573