-
Notifications
You must be signed in to change notification settings - Fork 200
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
Feature/parallel fetch data #267
base: main
Are you sure you want to change the base?
Feature/parallel fetch data #267
Conversation
EXPERIMENTAL: Consider this commit a chain of experimental changes, which likely break the pacakge.
This fixes an issue where the piscina worker pool crashes with `FATAL ERROR: v8::FromJust Maybe value is Nothing` Supposedly, this is the worker running out of memory? No idea. As a fix, we explicitly pick boundaries for queue and thread size in piscina.
|
This PR begins to parallelize the (presumably) computationally most expensive step: parsing source files. It does so by introducing a worker pool, which the main thread delegates to. Summarized changes:
makeCacheItemFromFilePath
with a thread worker pool via piscina.makeCacheItemFromFilePath
to make input/result serializable.This PR is considered WIP, with some things left to do:
Mandatory:
Optional:
makeCacheItemFromFilePath
.