MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ruby/comments/1sp32gj/optimizing_ruby_path_methods/
r/ruby • u/geospeck • Apr 18 '26
4 comments sorted by
7
I've been wanting to add a Dir.scan(path) do |name, type| for ages! That extra stat call to get the file type is a huge speed killer when walking large directory trees on network-based storage. Very nice to see it's being added.
Dir.scan(path) do |name, type|
stat
Intercom monolith CI runs with 1350 parallel workers by default
That's massive. Wondering what infrastructure is behind this.
I tend to treat performance gains like mushroom hunting.
When you find a mushroom, it usually means that it's an area where they grow well, and that no other mushroom hunter has passed by recently.
[…] unoptimized code is the same.
Goes straight to my notes.
7
u/insanelygreat Apr 18 '26
I've been wanting to add a
Dir.scan(path) do |name, type|for ages! That extrastatcall to get the file type is a huge speed killer when walking large directory trees on network-based storage. Very nice to see it's being added.7
u/retro-rubies Apr 19 '26
That's massive. Wondering what infrastructure is behind this.
7
u/pikrua Apr 19 '26
Goes straight to my notes.