omq-rs 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/omq_rs_native/Cargo.toml +1 -1
- data/lib/omq/rs/socket.rb +2 -10
- data/lib/omq/rs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ace7dd4c9d05f6cba6ed58941ed30038c131c3de0a246395baf2b932ac76fa25
|
|
4
|
+
data.tar.gz: 4c6fdc8bd3543f98c01979ba2cabe4460a6c435d92c91b969b7a6bc0e6b7fdd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff6a09ddfa0c2c1cddad4a369509ed59085143cd5abb208e506a216f5d6c6977db2a4c77384db602f0cd193be1ab4b69b17f4f0b25f31b9a88d236093e415918
|
|
7
|
+
data.tar.gz: a0e77ee6fc098846c4e8e40035ebed72d059cbcbb249c4f264954407cc5fde6ba7f1b3b0294752ad33069e261235269e2c0a87c889636b5b8b04374e31b73f7e
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.1.2] - 2026-09-01
|
|
6
|
+
|
|
7
|
+
- Route `Socket#try_recv` directly through the native nonblocking receive path.
|
|
8
|
+
- Avoid Ruby-side batch array churn in hot polling loops.
|
|
9
|
+
|
|
5
10
|
## [0.1.1] - 2026-08-23
|
|
6
11
|
|
|
7
12
|
- Document the full public API and publish the RubyDoc documentation link.
|
data/lib/omq/rs/socket.rb
CHANGED
|
@@ -279,7 +279,6 @@ module OMQ
|
|
|
279
279
|
|
|
280
280
|
@recv_timeout = recv_timeout
|
|
281
281
|
@send_timeout = send_timeout
|
|
282
|
-
@recv_batch = []
|
|
283
282
|
@request_waiting = false
|
|
284
283
|
@reply_ready = false
|
|
285
284
|
@native = Native::Socket.new(@socket_type.to_s.upcase)
|
|
@@ -440,18 +439,11 @@ module OMQ
|
|
|
440
439
|
# @return [Array<String, Integer>, nil] next message, or +nil+ if none is ready
|
|
441
440
|
def try_recv
|
|
442
441
|
ensure_materialized
|
|
443
|
-
unless @recv_batch.empty?
|
|
444
|
-
message = @recv_batch.shift
|
|
445
|
-
received!
|
|
446
|
-
return message
|
|
447
|
-
end
|
|
448
442
|
|
|
449
443
|
message = if ROUTED_TYPES.include?(@socket_type)
|
|
450
444
|
@native.try_recv_routed
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
@recv_batch = batch
|
|
454
|
-
first
|
|
445
|
+
else
|
|
446
|
+
@native.try_recv
|
|
455
447
|
end
|
|
456
448
|
received! if message
|
|
457
449
|
message
|
data/lib/omq/rs/version.rb
CHANGED