Skip to content

Add LRU cache for get_generator Functionality#94

Merged
rdheekonda merged 1 commit into
mainfrom
users/raja/minor-perf-improvement-get-generator
May 9, 2025
Merged

Add LRU cache for get_generator Functionality#94
rdheekonda merged 1 commit into
mainfrom
users/raja/minor-perf-improvement-get-generator

Conversation

@rdheekonda

@rdheekonda rdheekonda commented May 9, 2025

Copy link
Copy Markdown
Contributor

Notes

  • Minor Performance Improvement: Avoids redundant computations for frequently used generators in a pipeline.

Generated Summary

  • Introduced lru_cache for the get_generator function to optimize performance by caching results of expensive function calls.
  • Cleaned up method signatures across Generator and chat methods for improved clarity.
  • Adjusted type annotation formatting for consistency and readability.
  • No functional changes were made to the logic; the modifications primarily streamline the codebase and enhance efficiency.

This summary was generated with ❤️ by rigging

@rdheekonda rdheekonda requested a review from a team as a code owner May 9, 2025 17:41

@monoxgas monoxgas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rdheekonda rdheekonda merged commit ce8542e into main May 9, 2025
5 checks passed
@monoxgas monoxgas deleted the users/raja/minor-perf-improvement-get-generator branch May 30, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants