[ruby-core:62697] [PREVIEW] enc: convert some case fold tables to ihash

From: Eric Wong <normalperson@...>
Date: 2014-05-20 22:03:02 UTC
List: ruby-core #62697
Not a serious patch, yet, but this saves over 100K as measured with:

    /usr/bin/time ./ruby --disable=gems -e '/o/i =~ ""'

on my Debian 7, x86-64 system (eglibc malloc).

This will need to work with Onigmo upstream, however, which
currently bundles st.
---
  This depends on patches in Feature #9841.
  Related issues:
  * https://bugs.ruby-lang.org/issues/9614 (remove ordering for methods)
  * https://bugs.ruby-lang.org/issues/9841 (ihash for fstring only)

Download: http://80x24.org/casefold-ihash.patch
So far, we may save over 600K on initial startup in the early
parts of the heap.

In This Thread

Prev Next