ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: Ruby developers <ruby-core@ruby-lang.org>
Subject: [ruby-core:61488] Re: [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals
Date: Fri, 14 Mar 2014 06:20:44 +0000	[thread overview]
Message-ID: <20140314062044.GA7595@dcvr.yhbt.net> (raw)
In-Reply-To: <20140313171243.GA10468@dcvr.yhbt.net>

Eric Wong <normalperson@yhbt.net> wrote:
> How about only using thread local and remove the process-wide globals?

  git://80x24.org/ruby.git gc-tlscount

http://bogomips.org/ruby.git/patch?id=ee41b3938535a

Almost no change for bm_so_count_words, but (normal-sized) array and
bighash creation got speedups :o   I prefer this one, but this may
allow too much malloc for some MT users(*).


(*) I plan to cut overall memory use with things like Feature #9614.
    Even if matz requires ordering, we'll still save malloc using
    the linked-list from Feature #9632.

  reply	other threads:[~2014-03-14  6:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12  0:06 [ruby-core:61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals Eric Wong
2014-03-12  0:09 ` [ruby-core:61425] " Charlie Somerville
2014-03-12  1:07 ` [ruby-core:61426] " Eric Wong
2014-03-13 13:29 ` [ruby-core:61466] " SASADA Koichi
2014-03-13 17:12   ` [ruby-core:61471] " Eric Wong
2014-03-14  6:20     ` Eric Wong [this message]
2014-03-15  7:15     ` [ruby-core:61508] " SASADA Koichi
2014-03-15  8:34       ` [ruby-core:61509] " Eric Wong
2014-03-15  9:27         ` [ruby-core:61510] " SASADA Koichi
2014-03-15 20:41           ` [ruby-core:61519] " Eric Wong
2014-03-20  4:23             ` [ruby-core:61604] " SASADA Koichi
2014-03-20  8:12             ` [ruby-core:61608] " SASADA Koichi
2014-03-20  8:13               ` [ruby-core:61609] " SASADA Koichi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140314062044.GA7595@dcvr.yhbt.net \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).