Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

adding caching for get_bots with lru_cache - #221

Open
lpietrobon wants to merge 1 commit into
ading2210:mainfrom
lpietrobon:caching
Open

adding caching for get_bots with lru_cache#221
lpietrobon wants to merge 1 commit into
ading2210:mainfrom
lpietrobon:caching

Conversation

@lpietrobon

Copy link
Copy Markdown

lru_cache came with python 3.2, according to documentation t.ly/ph7Nh

Comment thread src/poe/__init__.py

return next_data

@lru_cache(maxsize=None)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

maxsize=None will lead to a memory leak.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants