[#64517] Fw: Re: Ruby and Rails to become Apache Incubator Project — Tetsuya Kitahata <kitahata@99.alumni.u-tokyo.ac.jp>

What do you think? >> Ruby developers

13 messages 2014/08/23

[#64615] [ruby-trunk - Feature #10181] [Open] New method File.openat() — oss-ruby-lang@...

Issue #10181 has been reported by Technorama Ltd..

10 messages 2014/08/28
[#64616] Re: [ruby-trunk - Feature #10181] [Open] New method File.openat() — Eric Wong <normalperson@...> 2014/08/28

I like this feature.

[#64671] Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...>

Why this fix solve your problem?

9 messages 2014/08/30
[#64672] Re: Fwd: [ruby-changes:35240] normal:r47322 (trunk): symbol.c (rb_sym2id): do not return garbage object — SASADA Koichi <ko1@...> 2014/08/30

(2014/08/30 8:50), SASADA Koichi wrote:

[ruby-core:64515] Re: [ruby-trunk - Feature #10165] [Open] Use Process.clock_gettime to speed up Benchmark.realtime.

From: Eric Wong <normalperson@...>
Date: 2014-08-23 21:44:06 UTC
List: ruby-core #64515
I like this.  The speedup is from reduction of allocations+GC

I think you need to fall back to CLOCK_REALTIME on systems w/o
CLOCK_MONOTONIC, though.  Based on my reading of process.c,
CLOCK_REALTIME is always available.  So something like this:

	if defined?(Process::CLOCK_MONOTONIC)
	  BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC
	else
	  # Ruby may use gettimeofday to emulate:
	  BENCHMARK_CLOCK = Process::CLOCK_REALTIME
	end

	def realtime # :yield:
	  r0 = Process.clock_gettime(BENCHMARK_CLOCK)
	  yield
	  Process.clock_gettime(BENCHMARK_CLOCK) - r0
	end

In This Thread

Prev Next