Skip to content

Fix slow completion on method chain of huge arrays and hashes (size >= 10000000)#75

Open
tompng wants to merge 1 commit intomainfrom
avoid_slow_flatten
Open

Fix slow completion on method chain of huge arrays and hashes (size >= 10000000)#75
tompng wants to merge 1 commit intomainfrom
avoid_slow_flatten

Conversation

@tompng
Copy link
Copy Markdown
Member

@tompng tompng commented Apr 5, 2026

These completions took about 0.5sec

irb(main):001> a = [1] * 10000000; a.size
=> 10000000
irb(main):002* a.first.
irb(main):001> h = 10000000.times.to_h { [it, it] }; h.size
=> 10000000
irb(main):002* h.keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants