ruby-core

Mailing list archive

[ruby-core:69200] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start

From: Eric Wong <normalperson@...>
Date: 2015-05-14 19:43:11 UTC
List: ruby-core #69200
SASADA Koichi <ko1@atdot.net> wrote:
> On 2015/05/14 5:15, Eric Wong wrote:
> > That's one, but I think generic ivar is common enough.  I'll also
> > work on using ivar index + array (like T_OBJECT) to reduce hash table
> > entries for most generic cases.
> 
> This is just curious.
> 
> How many generic ivar variables on practical applications, such as Rails
> and so on?

10 generic ivar for each accepted SSLSocket on servers.
I might have 30K accepted sockets...
(22 for each client connection!)

In This Thread

Prev Next