From 49779562375d00e0f7901c05c1a6155a3bb9b9e9 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 3 Jul 2026 13:28:22 +0200 Subject: [PATCH] deps: bump go-ruby-prime to the segmented-sieve fix (Prime.each 12.7x->1.4x MRI) go-ruby-prime#1 replaced the per-candidate Baillie-PSW generator with a memoized segmented int64 sieve (MRI-parity semantics). rbgo's go.mod still pinned the pre-fix pseudo-version, so the shipped interpreter kept paying the slow enumeration. Bump to the merged main pseudo-version: Prime.each_factor drops from ~135900 ns/op (12.68x MRI) to ~15300 (1.41x) measured end-to-end through rbgo. Co-Authored-By: Claude Opus 4.8 --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 55334bdd..5f431179 100644 --- a/go.mod +++ b/go.mod @@ -60,7 +60,7 @@ require ( github.com/go-ruby-pathname/pathname v0.0.0-20260629151955-d8d2c4e5f81b github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d github.com/go-ruby-prettyprint/prettyprint v0.0.0-20260629152429-60a380e82d7d - github.com/go-ruby-prime/prime v0.0.0-20260629151744-aa26747e21a8 + github.com/go-ruby-prime/prime v0.0.0-20260703101152-9274dca78d88 github.com/go-ruby-pstore/pstore v0.0.0-20260630081017-0dd55a12f94e github.com/go-ruby-public-suffix/public-suffix v0.0.0-20260630151503-f308d4002444 github.com/go-ruby-rack/rack v0.0.0-20260630124607-8a4f9cfcdbb5 diff --git a/go.sum b/go.sum index 83832d07..2c22709e 100644 --- a/go.sum +++ b/go.sum @@ -128,8 +128,8 @@ github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d h1:JKIZD+pJQ64/nla4D github.com/go-ruby-pg/pg v0.0.0-20260702135906-e5650264cc5d/go.mod h1:XIYL8wT1Thvoeh7y5v9ZrL+34ySHiieu1/GyDZauULk= github.com/go-ruby-prettyprint/prettyprint v0.0.0-20260629152429-60a380e82d7d h1:hH6O6QdrUlbePkqb8skhFQ0BVuMe0u1c/CXFFaVUnXg= github.com/go-ruby-prettyprint/prettyprint v0.0.0-20260629152429-60a380e82d7d/go.mod h1:SIQyfiIJRKJq0OD9gWYfmvQTdJClJf8z56BsfVVw7rY= -github.com/go-ruby-prime/prime v0.0.0-20260629151744-aa26747e21a8 h1:zghkWpebo93z7Uz/BMXnLSN30ZPeLXS35Y1HPeXkUE4= -github.com/go-ruby-prime/prime v0.0.0-20260629151744-aa26747e21a8/go.mod h1:dG/91hk8HlQ6YAdD64xiMFHTTmXjTWtapKWoG9JtcRA= +github.com/go-ruby-prime/prime v0.0.0-20260703101152-9274dca78d88 h1:td+zp+GfoRSqG1kuNvKiX+ujC6QQwR5YsQjqeXFUofg= +github.com/go-ruby-prime/prime v0.0.0-20260703101152-9274dca78d88/go.mod h1:dG/91hk8HlQ6YAdD64xiMFHTTmXjTWtapKWoG9JtcRA= github.com/go-ruby-pstore/pstore v0.0.0-20260630081017-0dd55a12f94e h1:JmbJL+0nq6HY1SX1tDBFQyo7M8JgbQ+ukwn8iLyNGfs= github.com/go-ruby-pstore/pstore v0.0.0-20260630081017-0dd55a12f94e/go.mod h1:tbYmHYXjnNXJCNYABDx9nWfuGBCXeKrp134bNsQeTpM= github.com/go-ruby-public-suffix/public-suffix v0.0.0-20260630151503-f308d4002444 h1:vkMPJDpZHmu09pVxr7CFppoh1b5Kc8LkhKpxkSBoyxA=