Skip to content

Conversation

@pddshk
Copy link

@pddshk pddshk commented Apr 29, 2021

It speeds up Julia code ~5 times in comparison with origin.

  1. Unlocked threads with open(path; lock = false)
  2. Preallocated memory for resulting vector triangles = Vector{Triangle}(undef, triangle_count)
  3. Used unsafe_read and pointer to read from file directly to memory

@pddshk
Copy link
Author

pddshk commented Apr 29, 2021

However I updated Julia version in README. This code requires 1.5.3 or higher

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.

1 participant