Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jetted arms write to trace but slow #225

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions rust/ares/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,20 @@ pub fn interpret(context: &mut Context, mut subject: Noun, formula: Noun) -> Res
Todo9::ComputeResult => {
if let Ok(mut formula) = res.slot_atom(kale.axis) {
if !cfg!(feature = "sham_hints") {
if let Some((jet, _path)) = context.warm.find_jet(
if let Some((jet, path)) = context.warm.find_jet(
&mut context.stack,
&mut res,
&mut formula,
) {
match jet(context, res) {
Ok(jet_res) => {
let stack = &mut context.stack;
stack.pop::<NockWork>();
if context.trace_info.is_some() {
append_trace(stack, path);
write_trace(context);
};
res = jet_res;
context.stack.pop::<NockWork>();
continue;
}
Err(JetErr::Punt) => {}
Expand Down
Loading