Skip to content

Commit

Permalink
improve offset handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrause committed Jan 5, 2025
1 parent 96d80e2 commit ce619bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ To install or update LODA, please follow the [installation instructions](https:/
### Enhancements

* Rename digit operations
* Improve offset handling

## v25.1.3

Expand Down
5 changes: 4 additions & 1 deletion src/oeis/oeis_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,11 @@ update_program_result_t OeisManager::updateProgram(
const bool is_server = (Setup::getMiningMode() == MINING_MODE_SERVER);
const std::string target_file = is_server ? global_file : local_file;
auto delta = updateProgramOffset(id, result.program);
optimizer.optimize(result.program);
dumpProgram(id, result.program, target_file, submitted_by);
updateAllDependentOffset(id, delta);
if (is_server) {
updateAllDependentOffset(id, delta);
}

// if not updating, ignore this sequence for future matches;
// this is important for performance: it is likly that we
Expand Down

0 comments on commit ce619bd

Please sign in to comment.