[#94657] [Ruby master Feature#16131] Remove $SAFE, taint and trust — naruse@...
Issue #16131 has been reported by naruse (Yui NARUSE).
3 messages
2019/08/29
[ruby-core:94322] [Ruby master Bug#16026] `Set#count` performance issues
From:
knu@...
Date:
2019-08-13 11:19:38 UTC
List:
ruby-core #94322
Issue #16026 has been updated by knu (Akinori MUSHA). I agree that the `return size if !block_given? && respond_to?(:size)` logic should belong to Enumerable. ---------------------------------------- Bug #16026: `Set#count` performance issues https://bugs.ruby-lang.org/issues/16026#change-80709 * Author: ioquatix (Samuel Williams) * Status: Open * Priority: Normal * Assignee: knu (Akinori MUSHA) * Target version: * ruby -v: * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- `Set#size` is O(1), but `Set#count` is O(N). I would like to add `alias count size` to `class Set` Is it okay? -- 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>