René's URL Explorer Experiment


Title: Logger/string formatting slows down some calculations · Issue #789 · biojava/biojava · GitHub

Open Graph Title: Logger/string formatting slows down some calculations · Issue #789 · biojava/biojava

X Title: Logger/string formatting slows down some calculations · Issue #789 · biojava/biojava

Description: Calculating secondary structure of 4hhb 10000 times takes 589 seconds on my machine. If the following two lines are commented out, it takes 34 seconds: biojava/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucC...

Open Graph Description: Calculating secondary structure of 4hhb 10000 times takes 589 seconds on my machine. If the following two lines are commented out, it takes 34 seconds: biojava/biojava-structure/src/main/java/org/b...

X Description: Calculating secondary structure of 4hhb 10000 times takes 589 seconds on my machine. If the following two lines are commented out, it takes 34 seconds: biojava/biojava-structure/src/main/java/org/b...

Opengraph URL: https://github.com/biojava/biojava/issues/789

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Logger/string formatting slows down some calculations","articleBody":"Calculating secondary structure of 4hhb 10000 times takes 589 seconds on my machine. If the following two lines are commented out, it takes 34 seconds:\r\n\r\nhttps://github.com/biojava/biojava/blob/8a7b651afc1bd75bf70f03d309250058a45b982d/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucCalc.java#L851-L856\r\n\r\nhttps://github.com/biojava/biojava/blob/8a7b651afc1bd75bf70f03d309250058a45b982d/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucCalc.java#L869-L870\r\n\r\nThe problem is likely to be in the String.format method. Using SLF4J parameterized messages instead (\"{}\") is much faster, but does not support float formatting to number of decimal places (see https://stackoverflow.com/questions/22720865/formatting-floating-point-numbers-in-slf4j, thanks @josemduarte ).\r\n\r\nMy suggestion is to go through the logging messages which use string formatting and, if feasible, change them to parameterized messages. \r\n\r\nThe performance is noticeably affected only if the logging statements are somewhere deep within a loop.","author":{"url":"https://github.com/biocryst","@type":"Person","name":"biocryst"},"datePublished":"2018-08-07T23:17:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/789/biojava/issues/789"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6bc3adb6-1e70-052b-5e72-a56c8547ecfa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBA6:18F725:3F47630:5611CC6:6972EE77
html-safe-noncebabe5ec6babd0f639f3cfb14c541a6c6d070296403b35a785c51d4d4ef05e00a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkE2OjE4RjcyNTozRjQ3NjMwOjU2MTFDQzY6Njk3MkVFNzciLCJ2aXNpdG9yX2lkIjoiMTg1MzU4MDQwMzUwMzQ1OTk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd0e1b7a47123dafeb390ea68152c8781cd3c7e1e9e9b624f31112d5d1e28e958
hovercard-subject-tagissue:348519951
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/biojava/biojava/789/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d7a6a11c839552d46db49776b0c5605b286d8d1c4118c1e8ed02995b4e820535/biojava/biojava/issues/789
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7a6a11c839552d46db49776b0c5605b286d8d1c4118c1e8ed02995b4e820535/biojava/biojava/issues/789
og:image:altCalculating secondary structure of 4hhb 10000 times takes 589 seconds on my machine. If the following two lines are commented out, it takes 34 seconds: biojava/biojava-structure/src/main/java/org/b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebiocryst
hostnamegithub.com
expected-hostnamegithub.com
None25ef7e923c492d9047af899b2ba66bfcb0a78059369630f2ce2cf57826ed6a53
turbo-cache-controlno-preview
go-importgithub.com/biojava/biojava git https://github.com/biojava/biojava.git
octolytics-dimension-user_id237402
octolytics-dimension-user_loginbiojava
octolytics-dimension-repository_id9199359
octolytics-dimension-repository_nwobiojava/biojava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9199359
octolytics-dimension-repository_network_root_nwobiojava/biojava
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
releasec0badd0db61d89a34653af2d762b2eb8c84f9d59
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/biojava/biojava/issues/789#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbiojava%2Fbiojava%2Fissues%2F789
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%2Fbiojava%2Fbiojava%2Fissues%2F789
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=biojava%2Fbiojava
Reloadhttps://github.com/biojava/biojava/issues/789
Reloadhttps://github.com/biojava/biojava/issues/789
Reloadhttps://github.com/biojava/biojava/issues/789
biojava https://github.com/biojava
biojavahttps://github.com/biojava/biojava
Notifications https://github.com/login?return_to=%2Fbiojava%2Fbiojava
Fork 395 https://github.com/login?return_to=%2Fbiojava%2Fbiojava
Star 623 https://github.com/login?return_to=%2Fbiojava%2Fbiojava
Code https://github.com/biojava/biojava
Issues 67 https://github.com/biojava/biojava/issues
Pull requests 2 https://github.com/biojava/biojava/pulls
Actions https://github.com/biojava/biojava/actions
Security 0 https://github.com/biojava/biojava/security
Insights https://github.com/biojava/biojava/pulse
Code https://github.com/biojava/biojava
Issues https://github.com/biojava/biojava/issues
Pull requests https://github.com/biojava/biojava/pulls
Actions https://github.com/biojava/biojava/actions
Security https://github.com/biojava/biojava/security
Insights https://github.com/biojava/biojava/pulse
New issuehttps://github.com/login?return_to=https://github.com/biojava/biojava/issues/789
New issuehttps://github.com/login?return_to=https://github.com/biojava/biojava/issues/789
Logger/string formatting slows down some calculationshttps://github.com/biojava/biojava/issues/789#top
bugBugs and bugfixeshttps://github.com/biojava/biojava/issues?q=state%3Aopen%20label%3A%22bug%22
enhancementImprovement of existing code or methodhttps://github.com/biojava/biojava/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/biocryst
https://github.com/biocryst
biocrysthttps://github.com/biocryst
on Aug 7, 2018https://github.com/biojava/biojava/issues/789#issue-348519951
biojava/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucCalc.javahttps://github.com/biojava/biojava/blob/8a7b651afc1bd75bf70f03d309250058a45b982d/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucCalc.java#L851-L856
8a7b651https://github.com/biojava/biojava/commit/8a7b651afc1bd75bf70f03d309250058a45b982d
biojava/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucCalc.javahttps://github.com/biojava/biojava/blob/8a7b651afc1bd75bf70f03d309250058a45b982d/biojava-structure/src/main/java/org/biojava/nbio/structure/secstruc/SecStrucCalc.java#L869-L870
8a7b651https://github.com/biojava/biojava/commit/8a7b651afc1bd75bf70f03d309250058a45b982d
https://stackoverflow.com/questions/22720865/formatting-floating-point-numbers-in-slf4jhttps://stackoverflow.com/questions/22720865/formatting-floating-point-numbers-in-slf4j
@josemduartehttps://github.com/josemduarte
bugBugs and bugfixeshttps://github.com/biojava/biojava/issues?q=state%3Aopen%20label%3A%22bug%22
enhancementImprovement of existing code or methodhttps://github.com/biojava/biojava/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.