René's URL Explorer Experiment


Title: Replace lru_cache usage with cache · Issue #35 · scijava/scyjava · GitHub

Open Graph Title: Replace lru_cache usage with cache · Issue #35 · scijava/scyjava

X Title: Replace lru_cache usage with cache · Issue #35 · scijava/scyjava

Description: functools.lru_cache provides a nice way of caching function returns, and is super useful for things like jimport. As @ctrueden noted, however: I think @cache is the nicest. It just implies (rightly so) that function results are cached an...

Open Graph Description: functools.lru_cache provides a nice way of caching function returns, and is super useful for things like jimport. As @ctrueden noted, however: I think @cache is the nicest. It just implies (rightly...

X Description: functools.lru_cache provides a nice way of caching function returns, and is super useful for things like jimport. As @ctrueden noted, however: I think @cache is the nicest. It just implies (rightly...

Opengraph URL: https://github.com/scijava/scyjava/issues/35

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replace lru_cache usage with cache","articleBody":"[`functools.lru_cache`](https://docs.python.org/3/library/functools.html#functools.lru_cache) provides a nice way of caching function returns, and is super useful for things like [`jimport`](https://github.com/scijava/scyjava/blob/af02aaad23a76cf6b85b4b8039fd1e0ae51f3721/scyjava/__init__.py#L307). As @ctrueden noted, however:\r\n\u003e I think [`@cache`](https://docs.python.org/3/library/functools.html#functools.cache) is the nicest. It just implies (rightly so) that function results are cached and returned again the second time. Whereas `lru_cache(maxsize=None)` is an oxymoron to me: if there is no size limit, it's not \"LRU\" anymore.\r\n\r\nThis is a good point. Unfortunately, `functools.cache` is a feature introduced in Python 3.9, while scyjava requires \u003e=3.6 and tests 3.8\r\n\r\nOnce we move on from these Python versions, we should probably reevaulate the usage of `lru_cache` on `jimport`.","author":{"url":"https://github.com/gselzer","@type":"Person","name":"gselzer"},"datePublished":"2022-03-30T15:21:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/35/scyjava/issues/35"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:445f3a8d-52db-10ce-59ce-f3d8cfeae269
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC1B8:9445B:8A347F:C03E5A:696A813D
html-safe-nonce19b96b582854355394e722d672b392f7caa4f979b0375694cc4be1857dd234c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUI4Ojk0NDVCOjhBMzQ3RjpDMDNFNUE6Njk2QTgxM0QiLCJ2aXNpdG9yX2lkIjoiMzQ0MjUyNDc4MDM4NjQ4NDU0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2335d3563ec672266f8c51fb03efb0fd59c6c4ec605025208fcf8bedb6ae3ce0
hovercard-subject-tagissue:1186623621
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scyjava/35/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8de51ad96d6b1db38a69cf202fb7188bd012022282ecd08be606b1298882c65e/scijava/scyjava/issues/35
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8de51ad96d6b1db38a69cf202fb7188bd012022282ecd08be606b1298882c65e/scijava/scyjava/issues/35
og:image:altfunctools.lru_cache provides a nice way of caching function returns, and is super useful for things like jimport. As @ctrueden noted, however: I think @cache is the nicest. It just implies (rightly...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegselzer
hostnamegithub.com
expected-hostnamegithub.com
None913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377
turbo-cache-controlno-preview
go-importgithub.com/scijava/scyjava git https://github.com/scijava/scyjava.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id113442144
octolytics-dimension-repository_nwoscijava/scyjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113442144
octolytics-dimension-repository_network_root_nwoscijava/scyjava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5998c30593994bf2589055aef7b22d368a499367
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scijava/scyjava/issues/35#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscyjava%2Fissues%2F35
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscyjava%2Fissues%2F35
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fscyjava
Reloadhttps://github.com/scijava/scyjava/issues/35
Reloadhttps://github.com/scijava/scyjava/issues/35
Reloadhttps://github.com/scijava/scyjava/issues/35
scijava https://github.com/scijava
scyjavahttps://github.com/scijava/scyjava
Notifications https://github.com/login?return_to=%2Fscijava%2Fscyjava
Fork 15 https://github.com/login?return_to=%2Fscijava%2Fscyjava
Star 54 https://github.com/login?return_to=%2Fscijava%2Fscyjava
Code https://github.com/scijava/scyjava
Issues 16 https://github.com/scijava/scyjava/issues
Pull requests 2 https://github.com/scijava/scyjava/pulls
Actions https://github.com/scijava/scyjava/actions
Projects 0 https://github.com/scijava/scyjava/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/scijava/scyjava/security
Please reload this pagehttps://github.com/scijava/scyjava/issues/35
Insights https://github.com/scijava/scyjava/pulse
Code https://github.com/scijava/scyjava
Issues https://github.com/scijava/scyjava/issues
Pull requests https://github.com/scijava/scyjava/pulls
Actions https://github.com/scijava/scyjava/actions
Projects https://github.com/scijava/scyjava/projects
Security https://github.com/scijava/scyjava/security
Insights https://github.com/scijava/scyjava/pulse
New issuehttps://github.com/login?return_to=https://github.com/scijava/scyjava/issues/35
New issuehttps://github.com/login?return_to=https://github.com/scijava/scyjava/issues/35
Replace lru_cache usage with cachehttps://github.com/scijava/scyjava/issues/35#top
unscheduledhttps://github.com/scijava/scyjava/milestone/2
https://github.com/gselzer
https://github.com/gselzer
gselzerhttps://github.com/gselzer
on Mar 30, 2022https://github.com/scijava/scyjava/issues/35#issue-1186623621
functools.lru_cachehttps://docs.python.org/3/library/functools.html#functools.lru_cache
jimporthttps://github.com/scijava/scyjava/blob/af02aaad23a76cf6b85b4b8039fd1e0ae51f3721/scyjava/__init__.py#L307
@ctruedenhttps://github.com/ctrueden
@cachehttps://docs.python.org/3/library/functools.html#functools.cache
unscheduledNo due datehttps://github.com/scijava/scyjava/milestone/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.