• Kamil Trzciński's avatar
    Optimise import performance · 8d1e97fc
    Kamil Trzciński authored
    - Fix `O(n)` complexity of `append_or_update_attribute`,
      we append objects to an array and re-save project
    - Remove the usage of `keys.include?` as it performs `O(n)`
      search, instead use `.has_key?`
    - Remove the usage of `.keys.first` as it performs a copy
      of all keys, instead use `.first.first`
    8d1e97fc
user_callouts_controller_spec.rb 1.23 KB