Project

General

Profile

Actions

Feature #4257

closed

switch_hitter - an acceleration of date library

Added by tadf (tadayoshi funaba) over 13 years ago. Updated about 13 years ago.

Status:
Closed
Target version:
-
[ruby-core:34305]

Description

=begin
switch_hitter'ed already passed nearly all of tests (except some tests
of class name and some confirmations of format of inspect).

  • The constructors may return Date::Light instead of Date.
  • as fast as home_run when it represents simple date of proleptic
    gregorian of the age of the human race.
  • keeps compatibility.
    • can load ruby 1.9.2 dumped marshal.
  • accepts flonum explicitly with limitations.
    • If the given offset is flonum, DateTime assumes its precision is
      at most second.
    • If the given +/- argument is flonum, DateTime assumes its
      precision is at most nanosecond.

I'd like to apply this to trunk in the near future.
I also have a plan of improvement about some format methods.

see also http://redmine.ruby-lang.org/issues/show/4068
=end


Files

switch_hitter.patch2 (83.8 KB) switch_hitter.patch2 tadf (tadayoshi funaba), 01/10/2011 09:52 PM
switch_hitter.patch3 (97.4 KB) switch_hitter.patch3 tadf (tadayoshi funaba), 01/16/2011 09:25 PM
switch_hitter.patch4 (97.4 KB) switch_hitter.patch4 tadf (tadayoshi funaba), 02/13/2011 01:22 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #4068: Replace current standard Date/DateTime library with home_runRejectedtadf (tadayoshi funaba)11/18/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0