3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00

api_context: consolidate ast trail vectors

a context never changes between user rc/non-user rc, so we can reuse the trail for both options
and save memory & smallish speedup
This commit is contained in:
Nuno Lopes 2021-04-13 17:21:42 +01:00
parent f4127bd6f3
commit 853ce099ec
2 changed files with 7 additions and 12 deletions

View file

@ -91,8 +91,7 @@ namespace api {
smt_params m_fparams;
// -------------------------------
ast_ref_vector m_last_result; //!< used when m_user_ref_count == true
ast_ref_vector m_ast_trail; //!< used when m_user_ref_count == false
ast_ref_vector m_ast_trail;
ref<api::object> m_last_obj; //!< reference to the last API object returned by the APIs
u_map<api::object*> m_allocated_objects; // !< table containing current set of allocated API objects