Project

General

Profile

Actions

Bug #16026

closed

`Set#count` performance issues

Added by ioquatix (Samuel Williams) over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Target version:
-
[ruby-core:93944]

Description

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?

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0