Skip to content

Generic memoizer via AST parsing and code generation #345

@Mzack9999

Description

@Mzack9999

Description

Implement a generic memoizer via code generation that produces a cacheable version of functions annotated with a placeholder (// @memo) through a combination of sync.Once` and clusterizing of in-flight calls.

Existing package functions (eg. xxx.Func(a, b) should be replaced with memo.Func(a, b)

Metadata

Metadata

Assignees

Labels

Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions