I'm creating and applying a boolean modifier between two complicated objects, like this:
bool_one = complicated_object_1.modifiers.new(type="BOOLEAN", name="bool 1")
bool_one.object = complicated_object_2
bool_one.operation = "DIFFERENCE"
bpy.ops.object.modifier_apply(modifier=bool_one.name)
Creating the modifier takes a little over 14 second, and applying the modifier also takes a little over 14 seconds. Presumably this is because creating the modifier has to calculate the new geometry to display and applying it creates the geometry again to create the new mesh object.
Is there any way I can create and apply the modifier in one step, disable the calculation while creating it or in some other way prevent it from doing the calculation twice?