Skip to content

Conversation

@mohsen1
Copy link
Owner

@mohsen1 mohsen1 commented Jan 29, 2025

No description provided.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR introduces Git history depth limiting to optimize performance, with a new max_git_depth configuration parameter defaulting to 100 commits.

Key changes:

  • Added new .github/workflows/bench.yml with dedicated stress testing and benchmarking jobs across platforms
  • Modified get_recent_commit_times_git2 in src/priority.rs to limit Git history traversal using revwalk.take(max_commits)
  • Removed benchmarking from CI workflow and created separate benchmark workflow for better organization
  • Missing validation in config.rs for ensuring max_git_depth is a positive number with reasonable upper bounds
  • Type conversion between usize and i32 for max_git_depth could benefit from explicit bounds checking

6 file(s) reviewed, 8 comment(s)
Edit PR Review Bot Settings | Greptile

mohsen1 and others added 8 commits January 30, 2025 00:48
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- Move build steps to a dedicated composite action

- Rename bench.yml to perf.yml for clarity

- Add proper Windows support with PowerShell

- Improve cross-platform path handling

- Separate packaging steps for better control
- Install musl-tools and musl-dev for musl targets

- Add gcc-aarch64-linux-gnu for aarch64 targets

- Set appropriate CC environment variable for musl builds

- Separate Linux GNU and MUSL build steps
@mohsen1 mohsen1 changed the title Do not go too Depp in Git history Do not go too deep in Git history Jan 29, 2025
- Add binutils-aarch64-linux-gnu for proper linking

- Add dynamic linker symlink for aarch64

- Set correct linker and build flags for aarch64-musl
- Replace GNU toolchain with MUSL cross-compiler

- Build OpenSSL statically with MUSL toolchain

- Configure pkg-config for cross-compilation
@mohsen1 mohsen1 added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit 99985ce Jan 29, 2025
28 checks passed
@mohsen1 mohsen1 deleted the perf-no-deep-git branch January 29, 2025 20:49
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.

2 participants