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

PLYLoader: Improve parsing performance. #25210

Merged
merged 1 commit into from
Jan 3, 2023
Merged

Conversation

aardgoose
Copy link
Contributor

Description

The loader redundantly performs property mapping per vertex and face and converts entire binary files to ascii for header parsing.

Only map element properties to output geometry properties as required instead of per vertex or face.
Avoid converting entire binary files to ascii for header parsing - ( 5s before, sub 1ms for lucy.ply after changes)

Approximate performance changes:

lucy100K.ply

Before: 100ms
After: 50ms

lucy.ply (original 500MB Stanford copy)

Before: 27s
After: 7s

geometry properties as required and avoid converting entire binary files
to ascii for header parsing.
@Mugen87 Mugen87 added this to the r149 milestone Jan 1, 2023
@Mugen87
Copy link
Collaborator

Mugen87 commented Jan 2, 2023

@Mugen87 Mugen87 changed the title Improve PLYLoader performance PLYLoader: Improve parsing performance. Jan 2, 2023
@Mugen87 Mugen87 merged commit 534003a into mrdoob:dev Jan 3, 2023
@aardgoose aardgoose deleted the plyloader-perf branch January 5, 2023 11:18
@aardgoose aardgoose mentioned this pull request Jan 8, 2023
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.

2 participants