Skip to content

[IMP] version_{gte,between}: cache results#396

Open
KangOl wants to merge 1 commit intoodoo:masterfrom
odoo-dev:master-cache-version_gte-chs
Open

[IMP] version_{gte,between}: cache results#396
KangOl wants to merge 1 commit intoodoo:masterfrom
odoo-dev:master-cache-version_gte-chs

Conversation

@KangOl
Copy link
Copy Markdown
Contributor

@KangOl KangOl commented Mar 16, 2026

As those functions are called a lot, better cache them.

As those functions are called a lot, better cache them.
@robodoo
Copy link
Copy Markdown
Contributor

robodoo commented Mar 16, 2026

Pull request status dashboard

@KangOl
Copy link
Copy Markdown
Contributor Author

KangOl commented Mar 16, 2026

upgradeci retry with always only crm

@KangOl KangOl requested a review from aj-fuentes March 16, 2026 15:07
@KangOl
Copy link
Copy Markdown
Contributor Author

KangOl commented Mar 16, 2026

upgradeci retry with always only crm in all versions

try:
from functools import lru_cache
except ImportError:
lru_cache = lambda: lambda x: x
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

:trollface:

Suggested change
lru_cache = lambda: lambda x: x
lru_cache = lambda: lambda lamdba: lamdba

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.

3 participants