Skip to content

Implement the cacheing option for the CCA response function #78

@physmlee

Description

@physmlee

Related Code

Motivation

  • The time bottleneck of the current CCA response function is in building the 2-dimensional ($\theta_{\text{start}}$-$r_{\text{start}}$ space) PDF and the application of the trapping efficiency to that 2D PDF.
    • The default configuration takes ~10 min to build the 2D PDF. Sampling the variables doesn't take a second.
  • What if we can save and load the prebuilt 2D PDF? That will speed up the processor a lot!

Things to Implement

  • I/O functionality of the SpatialSampler.
    • It should save the configuration, the 2D PDF, and other stuff.
  • Make SpatialSampler to be initializable from the saved SpatialSampler file.
  • Optional: a cache look-up method.
    • Compare the cached SpatialSamplers with the provided configuration. If a perfectly matched cache is found, then load it and skip the 2D PDF building process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions