• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hardbyte / python-can / 42898830427
74%

Build:
DEFAULT BRANCH: main
Ran 10 Nov 2026 08:50PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
42898830427

push

github

web-flow
Speed up socketcan capture_message by ~32% (#2097)

* Speed up socketcan capture_message by ~32%

`socket.MSG_DONTROUTE` is an `enum.IntFlag`, so masking it built a
`MsgFlag` per frame; it is now a module-level int. `Message` is built
positionally to skip keyword binding, with a new test pinning the order.

Live 500 kbit/s bus (aarch64, CPython 3.13.15): 107.8 -> 73.3 us CPU per
frame; output identical over 3000 real and 1995 synthetic frames.

Refs #1135

* Test capture_message instead of the Message signature

The previous test pinned the parameter order of Message.__init__, so a
swapped argument in capture_message's positional Message() call would
not have been caught. Feed frames through capture_message via a mocked
socket instead and compare every Message field. The cases are chosen so
that every pair of boolean fields differs in at least one of them.
Source Files on build 42898830427
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #42898830427
  • 3b28f91c on github
  • Prev Build on main (#42537521513)
  • Next Build on main (#42902407652)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc