Skip to content

Commit

Permalink
tokens: speed up duplication of Tokens objects (cylc#5325)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders authored Jan 25, 2023
1 parent f4fc436 commit c122bec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ ones in. -->
[#5314](https://github.com/cylc/cylc-flow/pull/5314) - Fix broken
command option: `cylc vip --run-name`.

[#5319](https://github.com/cylc/cylc-flow/pull/5319),
[#5321](https://github.com/cylc/cylc-flow/pull/5321),
[#5325](https://github.com/cylc/cylc-flow/pull/5325) -
Various efficiency optimisations to the scheduler which particularly impact
workflows with many-to-many dependencies (e.g. `<a> => <b>`).

-------------------------------------------------------------------------------
## __cylc-8.1.0 (<span actions:bind='release-date'>Released 2023-01-16</span>)__

### Breaking Changes
Expand Down
5 changes: 4 additions & 1 deletion cylc/flow/id.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def __init__(
if args:
if len(args) > 1:
raise ValueError()
kwargs = tokenise(str(args[0]), relative)
if isinstance(args[0], str):
kwargs = tokenise(args[0], relative)
else:
kwargs = dict(args[0])
else:
for key in kwargs:
if key not in self._KEYS:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_reinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def one_run(one_src, test_dir, run_dir):
)
return SimpleNamespace(
path=w_run_dir,
id=w_run_dir.relative_to(run_dir),
id=str(w_run_dir.relative_to(run_dir)),
)


Expand Down

0 comments on commit c122bec

Please sign in to comment.