Skip to content

Commit

Permalink
chore: add debug symbols to release build & some comments (#439)
Browse files Browse the repository at this point in the history
<!-- If applicable - remember to add the PR to the EA Rust project (ONLY
IF THERE IS NO LINKED ISSUE) -->

## Description

<!-- Please describe the motivation & changes introduced by this PR -->

## Linked issues

<!-- Please use "Resolves #<issue_no> syntax in case this PR should be
linked to an issue -->

## Important implementation details

<!-- if any, optional section -->
  • Loading branch information
kkafar authored Oct 20, 2023
1 parent 93ab557 commit b69cb08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ required-features = ["ff"]
[profile.dev]
opt-level = 0
debug = true

[profile.release]
debug = 1 # For profiling, should be disabled for production builds
4 changes: 4 additions & 0 deletions examples/jssp/problem/individual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ impl JsspIndividual {
let op_j = &self.operations[j];

// Calculate the earliest finish time (in terms of precedence only)
// TODO: We do not need to look on all predecessors. The direct one is enough, as
// it could not be scheduled before all his preds were finished. The question is:
// is the order of predecessors guaranteed? Look for places that manipulate this
// field!
let pred_j_finish = op_j
.preds
.iter()
Expand Down

0 comments on commit b69cb08

Please sign in to comment.