Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/docs/optimizing-with-codeflash/codeflash-all.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ This requires the Codeflash GitHub App to be installed in your repository.

This is a powerful feature that can help you optimize your entire codebase in one go.
Since it runs on all the functions in your codebase, it can take some time to complete, please be patient.
As this runs you will see Codeflash opening pull requests for each function it successfully optimizes.
As this runs you will see Codeflash opening pull requests for each function it successfully optimizes.

## Important considerations
- **Dedicated Optimization Machine:** Optimizing the entire codebase may require considerable time—up to one day. It's recommended to allocate a dedicated machine specifically for this long-running optimization task.

- **Minimize Background Processes:** To achieve optimal results, avoid running other processes on the optimization machine. Additional processes can introduce noise into Codeflash's runtime measurements, reducing the quality of the optimizations. Although Codeflash tolerates some runtime fluctuations, minimizing noise ensures the highest optimization quality.
Comment on lines +22 to +25
Copy link
Contributor

Choose a reason for hiding this comment

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

let's reorganize to something like this:

Important Considerations

Dedicated Optimization Machine

Optimizing the entire codebase may require considerable time, up to one day. It's recommended to allocate a dedicated machine specifically for this long-running task for the following reasons:

  • Long Runtime Duration:
    A full codebase optimization is a time-intensive operation. Using a dedicated machine ensures the process runs uninterrupted and doesn't interfere with your main development environment.

  • Minimize Background Processes:
    Codeflash relies on runtime measurements to guide optimizations. Running additional processes on the machine can introduce noise, reducing the accuracy of these measurements and thus the quality of the optimizations. Although Codeflash tolerates some fluctuations, a clean and idle environment ensures the best possible results.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

newlines between a markdown list breaks the flow. Simple bulleted lists with bolded headings is good enough.


- **Checkpoint and Recovery:** Codeflash automatically creates checkpoints as it identifies optimizations. If the optimization process is interrupted or encounters issues, you can resume the process by re-running `codeflash --all`. The command will prompt you to continue from the most recent checkpoint.
Loading