Schneller Start ohne RubyGems, Rational statt BigDecimal, Helfer in Rdb::Helpers

bin/rdb läuft mit --disable-gems (ca. 85 statt 170 ms je Befehl), dafür
rechnen Summen und /act mit Rational. Hilfsfunktionen und Konstanten liegen
nicht mehr auf Object, Kopf-/Strichzeile und awk-Aufruf an einer Stelle.
Tests laufen parallel: 21 statt 70 Sekunden.
This commit is contained in:
wkh
2026-10-30 10:01:36 +01:00
parent 1c489f6994
commit c2ea36c6d6
16 changed files with 380 additions and 287 deletions
+4
View File
@@ -12,6 +12,10 @@ DEMO = File.join(ROOT, 'demo')
# Each test runs in a scratch copy of demo/, so commands that change files
# (append, delete, replace ...) never touch the originals.
class RdbCase < Minitest::Test
# Tests spawn their own processes in their own directory, so they can run
# side by side (N=1 in MT_CPU runs them one at a time).
parallelize_me!
def setup
@dir = Dir.mktmpdir('rdb-test')
FileUtils.cp_r(Dir[File.join(DEMO, '*')], @dir)