insightsengineering/scda

memoise package for better performance in e.g. testthat

Closed this issue · 1 comments

We could use memoise::memoise() over synthetic_cdisc_data function.
Then identical call will be instantaneous as data is stored in memory which could hugely boost our testthat pipeline - e.g. teal.devel.

Unfortunately environment (memory) is not shared between different R files in testthat pipeline.

This might be beneficial only for regular R Console usage.