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

Major update for Julia code #4

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Major update for Julia code #4

wants to merge 18 commits into from

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