[#77789] [Ruby trunk Feature#12012] Add Boolean method — prodis@...
Issue #12012 has been updated by Fernando Hamasaki de Amorim.
4 messages
2016/10/27
[ruby-core:77514] [Ruby trunk Feature#12180] switch id_table.c variant
From:
funny.falcon@...
Date:
2016-10-07 12:14:15 UTC
List:
ruby-core #77514
Issue #12180 has been updated by Yura Sokolov. Please, reconsider benchmarking it with realworld applications. ---------------------------------------- Feature #12180: switch id_table.c variant https://bugs.ruby-lang.org/issues/12180#change-60777 * Author: Yura Sokolov * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Currently used variant is 'binary search in small table + hash for large tables'. But for contemporary CPU it may be better to do linear scan for small tables. It is already implemented in `id_table.c` and numbered as 35. Tested with simple Redmine installation on Intel Haswell i7-4770 CPU @ 3.40GHz - trunk: `Requests per second: 27.79 [#/sec] (mean)` - with switched implementation: `Requests per second: 28.87 [#/sec] (mean)` ---Files-------------------------------- 0001-id_table.c-switch-id_table-variant.patch (767 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>