Commit
·
f0abe0a
1
Parent(s):
0b2200c
Update multi_threaded_processed.py
Browse files
multi_threaded_processed.py
CHANGED
@@ -164,7 +164,7 @@ if __name__ == "__main__":
|
|
164 |
### END FILTERING ###
|
165 |
|
166 |
def run_multi_processing_threading():
|
167 |
-
ds.map(get_diff_multi_threaded_processed, num_proc=NUM_PROC, batch_size=NUM_THREADS, batched=True).to_json(f"diffs_{select_start}_{select_end}.jsonl", num_proc=NUM_PROC)
|
168 |
|
169 |
#NUM_TRIALS = 1
|
170 |
#print(f"Timing multithreading + multiprocessing using {NUM_THREADS} threads and {NUM_PROC} processes")
|
|
|
164 |
### END FILTERING ###
|
165 |
|
166 |
def run_multi_processing_threading():
|
167 |
+
ds.map(get_diff_multi_threaded_processed, num_proc=NUM_PROC, batch_size=NUM_THREADS, batched=True).to_json(f"diffs_{select_start}_{select_end}.jsonl", num_proc=NUM_PROC)
|
168 |
|
169 |
#NUM_TRIALS = 1
|
170 |
#print(f"Timing multithreading + multiprocessing using {NUM_THREADS} threads and {NUM_PROC} processes")
|