Skip to content

Commit ce619bd

Browse files
committed
improve offset handling
1 parent 96d80e2 commit ce619bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ To install or update LODA, please follow the [installation instructions](https:/
55
### Enhancements
66

77
* Rename digit operations
8+
* Improve offset handling
89

910
## v25.1.3
1011

src/oeis/oeis_manager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,11 @@ update_program_result_t OeisManager::updateProgram(
887887
const bool is_server = (Setup::getMiningMode() == MINING_MODE_SERVER);
888888
const std::string target_file = is_server ? global_file : local_file;
889889
auto delta = updateProgramOffset(id, result.program);
890+
optimizer.optimize(result.program);
890891
dumpProgram(id, result.program, target_file, submitted_by);
891-
updateAllDependentOffset(id, delta);
892+
if (is_server) {
893+
updateAllDependentOffset(id, delta);
894+
}
892895

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

0 commit comments

Comments
 (0)