atomic-ruby 0.11.0 → 0.11.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 396ed4e43a0e36238ac1eb035c1f43d425361ff3d639e2df201da916ddf3a44d
4
- data.tar.gz: 23471d0933619e790bcdab2b1aad3f6bbe9d008a924cae405fdd177fe423ad6a
3
+ metadata.gz: 4a9ae1ba9062331be3f6a5d74f170dbf88eb2ce6b142f3ef5077194ddeb1295e
4
+ data.tar.gz: 652fbf6d04d6efa3d57fc37643f85241e685950320d343e2341c155b0539bf93
5
5
  SHA512:
6
- metadata.gz: 38e99ffccfd1d96db774afd86b9a6fec93ed2f5a1f9bf479c7d1e490f0948fc5f4f9827ec567a07b493b16079ee482f7ec769c125432142fe83af7e19d753c87
7
- data.tar.gz: 98e3a33278772ea4c4a7731462591403e65bedc6a6524ffbe984c41b43651e383a09f5d0ba3a58ad464d9158f6dd8702e777549cfcbb9fc905afc8c668830d30
6
+ metadata.gz: 686a5aaeef7250102c57a7b5b9b2dbe5cdbe45105428a98217545d6c3b1183ef79696f64b5a7aa1135a0f260bdcb8c50b53b4455dc60785977687d62b8b3c47a
7
+ data.tar.gz: 2141ed20f4baf5e2f8cf175c69b8003bf62413e1e312b5b8bf402ea762d409bcbfc72bfc14955d6aa4319ee719c6d28880055e954d2bb69278f9154d71b5a970
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.11.1] - 2026-05-17
4
+
5
+ - Replace `Thread.pass` busy-wait with `sleep` in idle `AtomicThreadPool` workers
6
+
3
7
  ## [0.11.0] - 2026-05-10
4
8
 
5
9
  - Use `warn` in `AtomicThreadPool` error output
data/README.md CHANGED
@@ -379,13 +379,13 @@ puts "Atomic Ruby Atomic Thread Pool: #{results[1].real.round(6)} seconds"
379
379
  ```
380
380
  > bundle exec rake compile && bundle exec ruby examples/atomic_thread_pool_benchmark.rb
381
381
 
382
- ruby version: ruby 4.0.3 (2026-04-21 revision 85ddef263a) +YJIT +PRISM [arm64-darwin23]
382
+ ruby version: ruby 4.0.4 (2026-05-12 revision b89eb1bcbf) +YJIT +PRISM [arm64-darwin23]
383
383
  concurrent-ruby version: 1.3.6
384
- atomic-ruby version: 0.11.0
384
+ atomic-ruby version: 0.11.1
385
385
 
386
386
  Benchmark Results:
387
- Concurrent Ruby Thread Pool: 6.168734 seconds
388
- Atomic Ruby Atomic Thread Pool: 5.789739 seconds
387
+ Concurrent Ruby Thread Pool: 5.869825 seconds
388
+ Atomic Ruby Atomic Thread Pool: 5.387304 seconds
389
389
  ```
390
390
 
391
391
  </details>
@@ -294,7 +294,7 @@ module AtomicRuby
294
294
  @active_thread_count.swap { |current_count| current_count - 1 }
295
295
  end
296
296
  else
297
- Thread.pass
297
+ sleep 0.001
298
298
  end
299
299
  end
300
300
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtomicRuby
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  requirements: []
53
- rubygems_version: 4.0.6
53
+ rubygems_version: 4.0.10
54
54
  specification_version: 4
55
55
  summary: Atomic primitives for Ruby
56
56
  test_files: []