Skip to content

Conversation

@fabianfett
Copy link
Collaborator

Motivation

We like faster code. This removes a ton of unnecessary bounds checks.

Result

Faster code

In draft since it requires a new NIO release.

@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2021

Codecov Report

Merging #203 (5dac716) into main (2c49bee) will increase coverage by 1.08%.
The diff coverage is 83.72%.

❗ Current head 5dac716 differs from pull request most recent head 6ebb069. Consider uploading reports for the commit 6ebb069 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
+ Coverage   38.36%   39.45%   +1.08%     
==========================================
  Files         116      115       -1     
  Lines        7819     7756      -63     
==========================================
+ Hits         3000     3060      +60     
+ Misses       4819     4696     -123     
Flag Coverage Δ
unittests 39.45% <83.72%> (+1.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...esNIO/Message/PostgresMessage+Authentication.swift 0.00% <0.00%> (ø)
...ces/PostgresNIO/Message/PostgresMessage+Bind.swift 0.00% <0.00%> (ø)
...es/PostgresNIO/Message/PostgresMessage+Close.swift 0.00% <0.00%> (ø)
...sNIO/Message/PostgresMessage+CommandComplete.swift 0.00% <0.00%> (ø)
...PostgresNIO/Message/PostgresMessage+Describe.swift 0.00% <0.00%> (ø)
...es/PostgresNIO/Message/PostgresMessage+Error.swift 0.00% <0.00%> (ø)
.../PostgresNIO/Message/PostgresMessage+Execute.swift 0.00% <0.00%> (ø)
...Message/PostgresMessage+NotificationResponse.swift 0.00% <0.00%> (ø)
...sNIO/Message/PostgresMessage+ParameterStatus.swift 0.00% <0.00%> (ø)
...esNIO/Message/PostgresMessage+RowDescription.swift 0.00% <0.00%> (ø)
... and 50 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c49bee...6ebb069. Read the comment docs.

@fabianfett fabianfett force-pushed the ff-faster-decoding branch 2 times, most recently from 10d0f1a to 5dac716 Compare November 24, 2021 12:26
@fabianfett fabianfett requested a review from gwynne November 26, 2021 22:53
@fabianfett fabianfett marked this pull request as ready for review November 26, 2021 22:53
Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

I love it, ship it! 🎉

@gwynne gwynne self-assigned this Nov 26, 2021
@gwynne gwynne added the enhancement New feature or request label Nov 26, 2021
@gwynne gwynne merged commit 81ca909 into vapor:main Nov 26, 2021
@VaporBot
Copy link

These changes are now available in 1.7.1

@fabianfett fabianfett deleted the ff-faster-decoding branch March 13, 2022 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants