Giter Club home page Giter Club logo

Comments (7)

Lukasa avatar Lukasa commented on July 26, 2024

Actually, I'm not convinced about the HPACK case. For the encoder it's an obvious win, but for the decoder it's a little painful: we do some indexing into the header table, and that'll slow down with a deque.

from hyper.

Lukasa avatar Lukasa commented on July 26, 2024

Wait, we've got a giant number of integration tests for the HPACK stuff. Let's just try the replacement, and see if they run faster!

from hyper.

Lukasa avatar Lukasa commented on July 26, 2024

Alright, here's the result running against the current master with a warm cache:

============================= test session starts ==============================
platform darwin -- Python 3.3.3 -- pytest-2.5.1
collected 434 items 

test/test_hpack_integration.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................

========================= 434 passed in 23.64 seconds ==========================

from hyper.

Lukasa avatar Lukasa commented on July 26, 2024

Just changing the Encoder to use deques is unlikely to have a huge effect on the test run-time, as it only executes very infrequently, but it's also the bit that's most likely to do well. With a warm cache, we get a very small win:

============================= test session starts ==============================
platform darwin -- Python 3.3.3 -- pytest-2.5.1
collected 434 items 

test/test_hpack_integration.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................

========================= 434 passed in 23.56 seconds ==========================

from hyper.

Lukasa avatar Lukasa commented on July 26, 2024

Yeah, no great win here, sadly.

============================= test session starts ==============================
platform darwin -- Python 3.3.3 -- pytest-2.5.1
collected 434 items 

test/test_hpack_integration.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................

========================= 434 passed in 23.53 seconds ==========================

from hyper.

Lukasa avatar Lukasa commented on July 26, 2024

We don't make it worse, though, and they're really the right structure for the job, so I'll use them.

from hyper.

Lukasa avatar Lukasa commented on July 26, 2024

Resolved in d804f21 and 93bb280.

from hyper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.