Branch: Tag:

2018-01-26

2018-01-26 12:58:37 by Martin Karlgren <marty@roxen.com>

RAM cache: revert update_weights scheduling delay to 0.001.

This fixes a bug where update_weights_handle wasn't set so new calls
were scheduled unconditionally, leading to a huge background_run queue.

705:    if (!update_weights_handle) {    // Weird indexing: the roxen constant is not registered when    // this file is compiled... +  // +  // Warning: background_run doesn't return a handle if delay is set to 0.    update_weights_handle = -  all_constants()->roxen->background_run (0, update_weights); +  all_constants()->roxen->background_run (0.001, update_weights);    }    }