augustoasilva commented on a change in pull request #11193:
URL: https://github.com/apache/arrow/pull/11193#discussion_r734100866
##########
File path: cpp/src/gandiva/projector.cc
##########
@@ -174,13 +93,11 @@ Status Projector::Make(SchemaPtr schema, const
ExpressionVector& exprs,
ARROW_RETURN_NOT_OK(expr_validator.Validate(expr));
}
- // Start measuring build time
- auto begin = std::chrono::high_resolution_clock::now();
- ARROW_RETURN_NOT_OK(llvm_gen->Build(exprs, selection_vector_mode));
- // Stop measuring time and calculate the elapsed time
- auto end = std::chrono::high_resolution_clock::now();
- auto elapsed =
- std::chrono::duration_cast<std::chrono::milliseconds>(end -
begin).count();
+ // Set the object cache for LLVM
+ llvm_gen->SetLLVMObjectCache(obj_cache);
+
+ ARROW_RETURN_NOT_OK(llvm_gen->Build(
+ exprs, selection_vector_mode)); // to use when caching only the obj code
Review comment:
Removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]