summaryrefslogtreecommitdiffstats
path: root/Examples
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-10-16 13:33:51 -0700
committeryum <yum.food.vr@gmail.com>2022-10-16 13:37:46 -0700
commit9cc103b8919564e258b8e49e81e038ca29d84430 (patch)
treeda62887ac9950c92770003e296e518b1166c1565 /Examples
parent6125c7e8e6c7fa9109cd53754db75050e096469a (diff)
Add multicore YAML parser
Divide YAML stream into `nproc` chunks and parse each sub-stream in a process. We can't use threads because of the python global interpreter lock, but processes work pretty well. Parsing my 1.2M line / 43k document YAML goes from 65 seconds to 13.
Diffstat (limited to 'Examples')
0 files changed, 0 insertions, 0 deletions