Project

General

Profile

Actions

Feature #10219

closed

[PATCH] time.c: DATA_PTR is never NULL

Added by normalperson (Eric Wong) about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:64907]

Description

Tiny improvement on my older Phenom II X4 945 system:
$ ruby --disable=gems -e '6000000.times { Time.now }'
before: 2.51user 0.00system 0:02.51elapsed 100%CPU
after: 2.45user 0.00system 0:02.45elapsed 100%CPU

Will commit soon unless I missed something which zeros DATA_PTR.


Files

0001-time.c-DATA_PTR-is-never-NULL.patch (1.4 KB) 0001-time.c-DATA_PTR-is-never-NULL.patch normalperson (Eric Wong), 09/09/2014 09:28 PM
Actions

Also available in: Atom PDF