[#41916] Proposal: Bitmap Marking GC — Narihiro Nakamura <authornari@...>

Hi.

18 messages 2012/01/05

[#41941] [ruby-trunk - Bug #5851][Open] make check fails when compiling with GCC 4.7 - *** longjmp causes uninitialized stack frame *** — Vit Ondruch <v.ondruch@...>

12 messages 2012/01/06

[#41979] [ruby-trunk - Bug #5865][Open] Exception#== should return false if the classes differ — Hiro Asari <asari.ruby@...>

10 messages 2012/01/08

[#42003] [ruby-trunk - Bug #5871][Open] regexp \W matches some word characters when inside a case-insensitive character class — Gareth Adams <gareth@...>

14 messages 2012/01/09

[#42016] [ruby-trunk - Feature #5873][Open] Adopt FFI over DL — Heesob Park <phasis@...>

15 messages 2012/01/10

[#42149] [ruby-trunk - Feature #5899][Open] chaining comparsions. — Ondrej Bilka <neleai@...>

12 messages 2012/01/16

[#42164] [ruby-trunk - Feature #5903][Open] Optimize st_table (take 2) — Yura Sokolov <funny.falcon@...>

18 messages 2012/01/17

[ruby-core:42036] [ruby-trunk - Feature #5875][Open] Couple of tiny changes to string

From: Yura Sokolov <funny.falcon@...>
Date: 2012-01-10 13:01:26 UTC
List: ruby-core #42036
Issue #5875 has been reported by Yura Sokolov.

----------------------------------------
Feature #5875: Couple of tiny changes to string
https://bugs.ruby-lang.org/issues/5875

Author: Yura Sokolov
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 2.0.0


*   change capacity increment from (capa + 1) * 2 to capa * 2 + 1
    previous increment formula leads to inconvenient allocation patterns: 25bytes, 51bytes, etc 
    new formula leads to more comfortable allocation pattern: 24b, 48b, 96b
*   change STR_BUF_MIN_SIZE from 128 to 79
    128 leads to allocation of 129 bytes, which is very uncomfortable for allocators and unnecessary large.
    (during Redmine startup this method is called about 3000000 times with capa < 128)

https://github.com/ruby/ruby/pull/80
https://github.com/funny-falcon/ruby/commit/2240a04d49118d9fa6f038655dac27f0ad96ed6b.patch


-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next