René's URL Explorer Experiment


Title: Performance fix for slcan · Issue #2027 · hardbyte/python-can · GitHub

Open Graph Title: Performance fix for slcan · Issue #2027 · hardbyte/python-can

X Title: Performance fix for slcan · Issue #2027 · hardbyte/python-can

Description: Describe the bug There is a performance issue with the way the reads are implemented in slcan.py. _read() reads serial data one byte at a time via read(1), even when multiple bytes (or complete frames) are already buffered in the OS seri...

Open Graph Description: Describe the bug There is a performance issue with the way the reads are implemented in slcan.py. _read() reads serial data one byte at a time via read(1), even when multiple bytes (or complete fra...

X Description: Describe the bug There is a performance issue with the way the reads are implemented in slcan.py. _read() reads serial data one byte at a time via read(1), even when multiple bytes (or complete fra...

Opengraph URL: https://github.com/hardbyte/python-can/issues/2027

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Performance fix for slcan","articleBody":"### Describe the bug\nThere is a performance issue with the way the reads are implemented in slcan.py. \n\n_read() reads serial data one byte at a time via read(1), even when multiple bytes (or complete frames) are already buffered in the OS serial receive buffer. Each read(1) incurs a syscall and, when no data is available, blocks for up to the serial timeout (default 1ms). A typical SLCAN frame is ~27 bytes, so each frame requires 27 separate read(1) calls minimum. This causes per-frame read latency of 50–850ms instead of \u003c1ms (particularly on windows which seem to have sub-optimal serial support).\n\nI'm using CAN-TP over CAN-FD, so I'm pushing this to the limits, which is why the performance issue has shown up.\n\n### Expected behavior\nThe serial is read as fast as possible\n\n### Additional context\n\nOS and version: Windows 11\nPython version: 3.10\npython-can version: 4.6.1\npython-can interface/s (if applicable): Canable2 running SL CAN firmware with FD support\n\n### The Fix\nI'll submit a pull request with a suggested fix that alters the serial read behaviour to be significantly faster.","author":{"url":"https://github.com/aaronfultonnz","@type":"Person","name":"aaronfultonnz"},"datePublished":"2026-02-13T23:11:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2027/python-can/issues/2027"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6df2c9a8-5eb0-2847-a855-5a33f4777536
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9826:1712DC:68BC4FB:89F3B65:6A5DD4A7
html-safe-noncecc01acdc7cbdc745a6220cddb90b12b3ea3a323d2c718ebcbcdae710c3a57283
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODI2OjE3MTJEQzo2OEJDNEZCOjg5RjNCNjU6NkE1REQ0QTciLCJ2aXNpdG9yX2lkIjoiMjI5OTY5MjQwNzM3Njk1ODYzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7e509f94fc45f85053f43fec4f9ca2973acd81151a767791849ed123474f2162
hovercard-subject-tagissue:3939691619
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/hardbyte/python-can/2027/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c0065e6c67b9f3f69959a5aad470e293c369168bc1e2152ceafd2a161496d584/hardbyte/python-can/issues/2027
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c0065e6c67b9f3f69959a5aad470e293c369168bc1e2152ceafd2a161496d584/hardbyte/python-can/issues/2027
og:image:altDescribe the bug There is a performance issue with the way the reads are implemented in slcan.py. _read() reads serial data one byte at a time via read(1), even when multiple bytes (or complete fra...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaaronfultonnz
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
go-importgithub.com/hardbyte/python-can git https://github.com/hardbyte/python-can.git
octolytics-dimension-user_id855189
octolytics-dimension-user_loginhardbyte
octolytics-dimension-repository_id69090889
octolytics-dimension-repository_nwohardbyte/python-can
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id69090889
octolytics-dimension-repository_network_root_nwohardbyte/python-can
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/hardbyte/python-can/issues/2027#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhardbyte%2Fpython-can%2Fissues%2F2027
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fhardbyte%2Fpython-can%2Fissues%2F2027
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=hardbyte%2Fpython-can
Reloadhttps://github.com/hardbyte/python-can/issues/2027
Reloadhttps://github.com/hardbyte/python-can/issues/2027
Reloadhttps://github.com/hardbyte/python-can/issues/2027
hardbyte https://github.com/hardbyte
python-canhttps://github.com/hardbyte/python-can
Notifications https://github.com/login?return_to=%2Fhardbyte%2Fpython-can
Fork 687 https://github.com/login?return_to=%2Fhardbyte%2Fpython-can
Star 1.6k https://github.com/login?return_to=%2Fhardbyte%2Fpython-can
Code https://github.com/hardbyte/python-can
Issues 224 https://github.com/hardbyte/python-can/issues
Pull requests 35 https://github.com/hardbyte/python-can/pulls
Discussions https://github.com/hardbyte/python-can/discussions
Actions https://github.com/hardbyte/python-can/actions
Security and quality 0 https://github.com/hardbyte/python-can/security
Insights https://github.com/hardbyte/python-can/pulse
Code https://github.com/hardbyte/python-can
Issues https://github.com/hardbyte/python-can/issues
Pull requests https://github.com/hardbyte/python-can/pulls
Discussions https://github.com/hardbyte/python-can/discussions
Actions https://github.com/hardbyte/python-can/actions
Security and quality https://github.com/hardbyte/python-can/security
Insights https://github.com/hardbyte/python-can/pulse
#2028https://github.com/hardbyte/python-can/pull/2028
Performance fix for slcanhttps://github.com/hardbyte/python-can/issues/2027#top
#2028https://github.com/hardbyte/python-can/pull/2028
bughttps://github.com/hardbyte/python-can/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/aaronfultonnz
aaronfultonnzhttps://github.com/aaronfultonnz
on Feb 13, 2026https://github.com/hardbyte/python-can/issues/2027#issue-3939691619
bughttps://github.com/hardbyte/python-can/issues?q=state%3Aopen%20label%3A%22bug%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.