Skip to content

Commit

Permalink
Merge pull request #3 from jawah/release-5.0.2
Browse files Browse the repository at this point in the history
⚡ Performance overall improvement
  • Loading branch information
Ousret authored Apr 29, 2024
2 parents 3647680 + 43a1c31 commit 5aceee7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Release History
===============

5.0.2 (2024-04-29)
------------------

- Fixed URLs in project metadata.
- Overall performance improvement.

5.0.1 (2024-04-28)
------------------

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jh2"
version = "5.0.1"
version = "5.0.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion jh2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

from __future__ import annotations

__version__ = "5.0.1"
__version__ = "5.0.2"
19 changes: 7 additions & 12 deletions jh2/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,7 @@ def _receive_frame(self, frame):
.. versionchanged:: 2.0.0
Removed from the public API.
"""
self.config.logger.trace("Received frame: %s", repr(frame))
# self.config.logger.trace("Received frame: %s", repr(frame))
try:
# I don't love using __class__ here, maybe reconsider it.
frames, events = self._frame_dispatch_table[frame.__class__](frame)
Expand Down Expand Up @@ -2105,17 +2105,12 @@ def _decode_headers(decoder, encoded_header_block):
"""
try:
if ALTERNATIVE_HPACK:
headers = decoder.decode(encoded_header_block, raw=True)
to_named_tuple = []

for header in headers:
to_named_tuple.append(
NeverIndexedHeaderTuple(header[0], header[1])
if header[-1]
else HeaderTuple(header[0], header[1])
)

return to_named_tuple
return [
NeverIndexedHeaderTuple(header[0], header[1])
if header[-1]
else HeaderTuple(header[0], header[1])
for header in decoder.decode(encoded_header_block, raw=True)
]

return decoder.decode(encoded_header_block, raw=True)
except OversizedHeaderListError as e:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.fb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ dynamic = ["version"]


[project.urls]
"Changelog" = "https://github.com/jawah/jh2/blob/main/CHANGELOG.rst"
"Code" = "https://github.com/jawah/jh2"
"Issue tracker" = "https://github.com/jawah/jh2/issues"
"Changelog" = "https://github.com/jawah/h2/blob/main/CHANGELOG.rst"
"Code" = "https://github.com/jawah/h2"
"Issue tracker" = "https://github.com/jawah/h2/issues"

[tool.hatch.version]
path = "jh2/__init__.py"
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ requires-python = ">=3.7"
dynamic = ["version"]

[project.urls]
"Changelog" = "https://github.com/jawah/jh2/blob/main/CHANGELOG.rst"
"Code" = "https://github.com/jawah/jh2"
"Issue tracker" = "https://github.com/jawah/jh2/issues"
"Changelog" = "https://github.com/jawah/h2/blob/main/CHANGELOG.rst"
"Code" = "https://github.com/jawah/h2"
"Issue tracker" = "https://github.com/jawah/h2/issues"

[tool.maturin]
features = ["pyo3/extension-module"]
Expand Down

0 comments on commit 5aceee7

Please sign in to comment.