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
+3 -1
View File
@@ -1,8 +1,10 @@
#!/usr/bin/env ruby
#!/usr/bin/env -S ruby --disable-gems
# frozen_string_literal: true
# rdb -- every /rdb command is this one program, looking at the name it was
# called by. `row`, `column`, `total` ... are symlinks to it (`rdb install`).
# --disable-gems: rdb needs only the standard library, and skipping RubyGems
# makes each command start about twice as fast.
require_relative '../lib/rdb'