Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Use edge iteration to marginally improve performance
Browse files Browse the repository at this point in the history
Change-Id: I8d313b52267d72ee7c232f5891b6dc9952d4cfa8
  • Loading branch information
Cypher1 committed Mar 3, 2022
1 parent e873d90 commit 86325db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ibis/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ibis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ wasm = [ "wasm-bindgen", "console_error_panic_hook" ] # Support wasm-bindgen API
[dependencies]
nom = "7.1.0"
paste = "1.0.6"
crepe = "0.1.5"
crepe = "0.1.6"
lazy_static = "1.4.0"
ibis_macros = { package = "arcsjs_ibis_macros", path = "./ibis_macros" }
serde = { version = "1.0", features = ["derive"] }
Expand Down
7 changes: 3 additions & 4 deletions ibis/src/recipes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ ibis! {
KnownType(apply!(y_generic, y_arg));

HasTag(s, n, n, tag) <- Solution(s), Claim(n, tag);
HasTag(s, source, down, tag) <- // Propagate tags 'downstream'
HasTag(s, source, *down, tag) <- // Propagate tags 'downstream'
HasTag(s, source, curr, tag),
Node(_down_particle, down, _, _),
(s.has_edge(curr, down)),
!TrustedToRemoveTag(down, tag);
for (curr, down) in &s.solution().edges,
!TrustedToRemoveTag(*down, tag);

HasTag(s, source, down, tag) <- // Propagate tags 'across stream' (i.e. inside a particle)
HasTag(s, source, curr, tag),
Expand Down

0 comments on commit 86325db

Please sign in to comment.