Skip to content

Major update for Julia code#4

Open
pddshk wants to merge 18 commits into
aaronang:masterfrom
pddshk:master
Open

Major update for Julia code#4
pddshk wants to merge 18 commits into
aaronang:masterfrom
pddshk:master

Conversation

@pddshk
Copy link
Copy Markdown

@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
Copy Markdown
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