add s pointers for strings and partial strings, put_unsafe_value calls store earlier to avoid unnecessary heap writes (#273)

This commit is contained in:
Mark Thom
2020-02-28 23:42:40 -07:00
parent aa5f186a96
commit 2ebcd673c8
3 changed files with 77 additions and 66 deletions

View File

@@ -699,7 +699,7 @@ impl Machine {
snapshot.e = self.machine_st.e;
snapshot.b = self.machine_st.b;
snapshot.b0 = self.machine_st.b0;
snapshot.s = self.machine_st.s;
snapshot.s = self.machine_st.s.clone();
snapshot.tr = self.machine_st.tr;
snapshot.num_of_args = self.machine_st.num_of_args;