google / google/dotprompt

Consider caching resolved schemas in Dotprompt

Open
#498 0 comments 0 reactions 0 assignees View on GitHub
enhancement python
Dominant language
Starlark
Stars
563
Forks
68
Avg merge
6m
Merged PRs (30d)
2

Description

## Summary

The Python Dotprompt implementation has a TODO questioning whether to cache resolved schemas.

## Location

- `python/dotpromptz/src/dotpromptz/dotprompt.py:443`: `# TODO: Should we cache the resolved schema in self._schemas?`

## Acceptance Criteria

- [ ] Analyze performance impact of schema resolution
- [ ] Implement caching if beneficial
- [ ] Ensure cache invalidation on schema changes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.