Skip to content

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

Merged
tompng merged 1 commit intomainfrom
avoid_slow_flatten
Apr 6, 2026
Merged

Fix slow completion on method chain of huge arrays and hashes (size >= 10000000)#75
tompng merged 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.

@tompng tompng merged commit 5616268 into main Apr 6, 2026
42 checks passed
@tompng tompng deleted the avoid_slow_flatten branch April 6, 2026 19:17
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