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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user