Skip to content

Conversation

greglucas
Copy link
Collaborator

Title of PR

We can avoid the isinstance checks in the while-loops by explicitly setting the type of read to do on the initial entry into the generator.

closes #80

Checklist

  • Changes are fully implemented without dangling issues or TODO items
  • Deprecated/superseded code is removed or marked with deprecation warning
  • Current dependencies have been properly specified and old dependencies removed
  • New code/functionality has accompanying tests and any old tests have been updated to match any new assumptions
  • The changelog.md has been updated

@greglucas greglucas requested a review from medley56 as a code owner September 26, 2024 21:32
We can avoid the isinstance checks in the while-loops by explicitly
setting the type of read to do on the initial entry into the generator.
Copy link
Member

@medley56 medley56 left a comment

Choose a reason for hiding this comment

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

Heck yeah! This is a nice improvement!

@medley56 medley56 merged commit 138a4bd into lasp:main Sep 30, 2024
7 checks passed
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.

Move isinstance checks up a level when reading raw bytes
2 participants