[parrot/parrot] 8d4f52: [core] Downgrade external ascii on multi-byte plat...

GitHub noreply at github.com
Tue Nov 11 23:04:02 UTC 2014


  Branch: refs/heads/smoke-me/downgrade-ascii-gh1098
  Home:   https://github.com/parrot/parrot
  Commit: 8d4f52e0b2d55df81346b704c38740a5fe746d90
      https://github.com/parrot/parrot/commit/8d4f52e0b2d55df81346b704c38740a5fe746d90
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-11-12 (Wed, 12 Nov 2014)

  Changed paths:
    M ChangeLog
    M src/string/api.c

  Log Message:
  -----------
  [core] Downgrade external ascii on multi-byte platform encodings

We should scan those external strings for pure-ascii and set the
ascii encoding if the multibyte platform encoding is not needed.
This is mostly helpful to Getopt handling and is better then downgrade
to binary. We cannot set latin1 as this is incompatible to utf-8.
On Parrot_str_from_platform_cstring we can even reuse the setjmp for
the mult-byte exception in to_encoding.


  Commit: 3de496bcbdd2138f51385272c399f427b58f268d
      https://github.com/parrot/parrot/commit/3de496bcbdd2138f51385272c399f427b58f268d
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-11-12 (Wed, 12 Nov 2014)

  Changed paths:
    M src/string/api.c

  Log Message:
  -----------
  disable Parrot_str_new_from_cstring downgrade, benchmarks

12470ms with both, 11964ms without str_new_from_cstring.


Compare: https://github.com/parrot/parrot/compare/8dee72075124...3de496bcbdd2


More information about the parrot-commits mailing list