Skip to content

Commit

Permalink
Improved parallelization?
Browse files Browse the repository at this point in the history
investigating this
  • Loading branch information
akoumjian authored Oct 18, 2023
1 parent be5d606 commit 39d033c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions adam_core/propagator/propagator.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,14 @@ def generate_ephemeris(
max_workers=max_processes
) as executor:
futures = []
# Iterate off of all combined chunks of orbits and observers.
for orbit_chunk in _iterate_chunks(orbits, chunk_size):
futures.append(
executor.submit(ephemeris_worker, orbit_chunk, observers, self)
)
for observers_chunk in _iterate_chunks(observers, 1):
futures.append(
executor.submit(
ephemeris_worker, orbit_chunk, observers_chunk, self
)
)

ephemeris_list = []
for future in concurrent.futures.as_completed(futures):
Expand Down

0 comments on commit 39d033c

Please sign in to comment.