From: eregontp@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:99201] [Ruby master Feature#16029] Expose fstring related APIs to C-extensions
Date: Fri, 17 Jul 2020 09:23:00 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-86580.20200717092300.7941@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-16029.20190731010619.7941@ruby-lang.org
Issue #16029 has been updated by Eregon (Benoit Daloze).
See https://bugs.ruby-lang.org/issues/13381#note-6
----------------------------------------
Feature #16029: Expose fstring related APIs to C-extensions
https://bugs.ruby-lang.org/issues/16029#change-86580
* Author: byroot (Jean Boussier)
* Status: Open
* Priority: Normal
----------------------------------------
As discussed with @tenderlove here: https://github.com/ruby/ruby/pull/2287#issuecomment-513865160
We'd like to update various data format parsers (JSON, MessagePack, etc) to add the possibility to deduplicate strings while parsing.
But unfortunately the `rb_fstring_*` family of functions isn't available to C-extensions, so the only available fallback is `rb_funcall(str, rb_intern("-@"))` which most parsers will likely consider too slow. So the various `rb_fstring_*` functions would need to be public.
Proposed patch: https://github.com/ruby/ruby/pull/2299
--
https://bugs.ruby-lang.org/
next prev parent reply other threads:[~2020-07-17 9:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <redmine.issue-16029.20190731010619.7941@ruby-lang.org>
2020-02-14 14:19 ` [ruby-core:97165] [Ruby master Feature#16029] Expose fstring related APIs to C-extensions jean.boussier
2020-07-17 9:23 ` eregontp [this message]
2020-07-17 10:39 ` [ruby-core:99202] " jean.boussier
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=redmine.journal-86580.20200717092300.7941@ruby-lang.org \
--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).