lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.95k stars 398 forks source link

Avoid repeated allocations of node-type array #1452

Closed ghost closed 1 year ago

ghost commented 2 years ago

Description

Hi, I am trying to optimize YARD a bit to speed up documentation runs on a large codebase.

The codebase is private, so I am using https://github.com/watir/watir/ as a smaller stand-in to report benchmarking numbers from https://github.com/SamSaffron/memory_profiler.

Test set-up

Performance data

Completed Tasks

lsegal commented 1 year ago

Getting around to these. Thanks for the contribution!