Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Pithikos/python-websocket-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: aschult5/python-websocket-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 16, 2024

  1. Speed up read_next_message

    - Pre-allocate message_bytes to avoid resizing.
    - Use bitwise AND (& 3) instead of modulus (% 4)
    
    The larger the payload, the more the speedup. In bytes:
    - 1: -3%
    - 2: +8%
    - 4: +11%
    - 8: +18%
    - 16: +25%
    - 32: +28%
    - 128: +29%
    - 512: +31%
    - 1Ki: +33%
    - 4Ki: +34%
    - 8Ki: +33%
    - 16Ki:+33%
    aschult5 committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    43fb0dd View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2024

  1. Speed up read_next_message

    zip payload and cycle(masks).
    
    Slower for small payloads. But much faster for larger ones.
    aschult5 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    bf53167 View commit details
    Browse the repository at this point in the history
  2. Bump version 0.6.5

    aschult5 committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    6929204 View commit details
    Browse the repository at this point in the history
Loading