Skip to content
Permalink
Branch: master
Commits on Nov 8, 2019
  1. Cow-box WebSocketFrame. (#1211)

    marlimox authored and Lukasa committed Nov 8, 2019
    Motivation:
    
    WebSocketFrameDecoder makes an allocation due to WebSocketFrame not fitting in an
    existential. We should reduce this overhead.
    
    Modifications:
    
    Moved data and extensionData into a cow-box and reorder fields to more efficiently
    pack them.
    
    Result:
    
    WebSocketFrame is now 14 bytes, down from 55.
Commits on Nov 7, 2019
  1. Allow single test to be specified as an argument to run-nio-alloc-cou…

    marlimox authored and weissi committed Nov 7, 2019
    …nter-tests.sh. (#1214)
    
    * Allow single test to be specified as an argument to run-nio-alloc-counter-tests.sh.
    
    Motivation:
    
    run-nio-alloc-counter-tests.sh currently runs all tests. When writing or
    debugging a test, you commonly want to run a single test. At the moment the
    common practice is to edit the script to hardcode a test to run, which is
    annoying and error-prone.
    
    Modifications:
    
    Add an optional argument to the script to specify the test to run.
    
    Result:
    
    $ ./run-nio-alloc-counter-tests.sh
    
    runs all tests.
    
    $ ./run-nio-alloc-counter-tests.sh test_decode_1000_ws_frames.swift
    
    runs only test_decode_1000_ws_frames.swift.
Commits on Oct 30, 2019
You can’t perform that action at this time.