Open
Description
Store each function call as a dataclass
object, and the history would be a list of such objects.
Only support fiddy.function.Function
so history can be automatically generated inside __call__
.
Pros:
- can be used as a cache
- either remove
fiddy.function.CachedFunction
, or disable history ifCachedFunction
is used- caching user option as a
fiddy.function.Function
attribute (e.g. booleansave_history
andhistory_as_cache
)
- caching user option as a
- either remove
- can be easily converted to a human-readable format e.g. pandas
DataFrame
- and store/load history (cache) as a
DataFrame
- and store/load history (cache) as a
- easy to query results and reuse, if a
DataFrame
Cons:
- speed
- need to limit slow pandas operations such as
append
- may be slower than the current disk or ram caching (can support all caching options)
- need to limit slow pandas operations such as
Metadata
Metadata
Assignees
Labels
No labels