Skip to content

refactor: Reduce nesting in destination server code write#463

Closed
erezrokah wants to merge 3 commits intocloudquery:mainfrom
erezrokah:refactor/reduce_nesting
Closed

refactor: Reduce nesting in destination server code write#463
erezrokah wants to merge 3 commits intocloudquery:mainfrom
erezrokah:refactor/reduce_nesting

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Dec 6, 2022

Summary

We can check err == io.EOF outside of err != nil to make it easier to follow the code


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 6, 2022

⏱️ Benchmark results

Comparing with 8dcbe8d

  • DefaultConcurrency-2 resources/s: 12,097 ⬆️ 11.45% increase vs. 8dcbe8d
  • Glob-2 ns/op: 158.6 ⬆️ 1.83% increase vs. 8dcbe8d
  • TablesWithChildrenDefaultConcurrency-2 resources/s: 30,815 ⬆️ 10.74% increase vs. 8dcbe8d
  • BufferedScanner-2 ns/op: 9.42 ⬇️ 0.90% decrease vs. 8dcbe8d
  • LogReader-2 ns/op: 30.73 ⬆️ 0.07% increase vs. 8dcbe8d

@github-actions github-actions bot added refactor and removed refactor labels Dec 6, 2022
@erezrokah erezrokah changed the title refactor: Reduce nesting in destination server code refactor: Reduce nesting in destination server code write Dec 11, 2022
kodiakhq bot pushed a commit that referenced this pull request Dec 24, 2022
@erezrokah
Copy link
Copy Markdown
Member Author

Done in #529

@erezrokah erezrokah closed this Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants