-
Notifications
You must be signed in to change notification settings - Fork 56
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
SaveAsSync? #62
Comments
It won't be portable across platforms. Why do you need it though? You can just not pass any callback if you prefer to, it will save file nevertheless. |
I load in a point cloud(60-200MB binary final of int16's). Then query ~10 million position and apply the positions to the point cloud. The positions come in a stream from mysql server. Then at certain intervals write out the point cloud. I need to stop the mysql stream in order to output the file if being written async to ensure the point cloud isnt modified during output. When sync i can maintain the stream synchronously. I can do a pause in the stream, then pass in call back to resume when outputs the last file, but I think its really messed compared to sync write and doesnt save any time since I need to pause the database stream.
I have tried cloning off the object to write but I get memory overflow, because the database stream and math is way faster then the write and garbage collection. Open for any suggestions. |
I needed to implement a SaveAsSync due to using a jbin in a module that couldn't work well with a call back. I can add a PR to implement a SaveAsSync if any interest.
The text was updated successfully, but these errors were encountered: