Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help to improve cpython performance in xormask #1494

Closed
rwayan opened this issue Jul 14, 2021 · 1 comment
Closed

Please help to improve cpython performance in xormask #1494

rwayan opened this issue Jul 14, 2021 · 1 comment

Comments

@rwayan
Copy link

rwayan commented Jul 14, 2021

Sorry for my poor english

image
python-websockets/websockets#466 (comment)

would you please patch this for cpython users ?

    from websockets.speedups import apply_mask
    class XorMaskerShifted1(object):

        __slots__ = ('_ptr', '_mskarray','_mask')

        def __init__(self, mask):
            assert len(mask) == 4
            self._mask = mask

        def process(self, data):
            return apply_mask(data,self._mask)
@rwayan rwayan changed the title Please help to import cpython performance in xormask Please help to improve cpython performance in xormask Jul 14, 2021
@oberstet
Copy link
Contributor

no, won't merge;

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

No branches or pull requests

2 participants