Skip assign tag_list and build_needs in Seed::Build
Problem
- Assigning
tag_list
toCi::Build
takes 5.4% (almost 1s) based on the profile data below. - Assigning
needs_attributes
toCi::Build
takes 4.9%. - In total we spend 2s in assigning attributes that then we persist in Bulk
Proposal
Can we store this data somewhere else, e.g. in the @command
and reuse it later for bulk insert?
We don't seem to use build needs neither tags in the evaluation of rules so we could skip assigning them.
Data
flamegraph.speedscope.json - open with https://www.speedscope.app/ - This is the profiling data from a merge request pipeline created on 15 Dec 2022.
Edited by Fabio Pitino