Skip to content

Parse Git attribute files using Ruby

Yorick Peterse requested to merge ruby-gitattributes-parser into master

Commit 340e111e contains all the details. It's quite the read so the short summary is:

Rugged is slow as heck because it runs multiple IO calls every time you request a set of Git attributes. gitlab_git now provides a pure Ruby parser that avoids this and is between 4 and 6 times faster.

Here's a Grafana screenshot to show how bad it can get:

timings

See https://gitlab.com/gitlab-org/gitlab-ce/issues/10785 for more information.

Merge request reports