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

Multithread #15

Merged
merged 4 commits into from
Jan 16, 2021
Merged

Multithread #15

merged 4 commits into from
Jan 16, 2021

Conversation

thkruz
Copy link
Owner

@thkruz thkruz commented Jan 16, 2021

Creates 4 threads and then splits the workload based on number of satellites (doing 1 satellite with 10000 propagations won't have any increased speed).

Satrecs are JSON serialized and then converted to binary so that they can be transferred straight to the worker thread instead cloning them. Caching mechanism would be smart for applications where it regularly calculates the same satellites.

Returned data is kept in a flat array with the pattern [time, positionX, positionY, positionZ, velocityX, velocityY, velocityZ]. This is a huge speed benefit and sets the data up to be used in 3D applications.

@codecov
Copy link

codecov bot commented Jan 16, 2021

Codecov Report

Merging #15 (e258121) into develop (6887e7f) will decrease coverage by 2.18%.
The diff coverage is 91.05%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #15      +/-   ##
===========================================
- Coverage    94.85%   92.66%   -2.19%     
===========================================
  Files            4        5       +1     
  Lines         1224     1282      +58     
  Branches       102      103       +1     
===========================================
+ Hits          1161     1188      +27     
- Misses          63       94      +31     
Impacted Files Coverage Δ
src/ootk-multi.ts 38.00% <38.00%> (ø)
src/ootk-sgp4.ts 95.62% <99.37%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6887e7f...e258121. Read the comment docs.

@thkruz thkruz merged commit 7b1d1f9 into develop Jan 16, 2021
@thkruz thkruz deleted the multithread branch January 16, 2021 04:56
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.

None yet

1 participant