Backport #1812

backport r22303

Added by Yuki Sonoda over 2 years ago. Updated 10 months ago.

[ruby-core:24535]
Status:Closed Start date:07/24/2009
Priority:Normal Due date:
Assignee:Akinori MUSHA % Done:

100%

Category:-
Target version:Ruby 1.8.8

Description

please backport r22303 to ruby 1.8 series.

The test code makes loading time.rb x2 slower.

Associated revisions

Revision 24265
Added by knu over 2 years ago

* lib/time.rb, test/test_time.rb: Move test code to a separate file to save memory and compile time. [Bug #1812]

History

Updated by Akinori MUSHA over 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r24265.

Updated by Akinori MUSHA over 2 years ago

  • Status changed from Closed to Open
  • % Done changed from 100 to 0
JFYI, another way to avoid the problem of this kind is to use __END__ and DATA.

cf. generator.rb, set.rb, etc.

Updated by Akinori MUSHA over 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF