Reuse loaded component units per request
This commit is contained in:
@@ -59,7 +59,7 @@ RENDER(Request& context)
|
||||
String unit_operations = json_encode(perf["unit_module_operations"]);
|
||||
check(
|
||||
"request_perf() separates entry code from dynamic component materialization",
|
||||
perf["entry_unit_load_count"].to_u64() == 1 && perf["entry_unit_materialize_us"].to_u64() > 0 && perf["dynamic_include_load_count"].to_u64() > 0 && perf["dynamic_include_materialize_us"].to_u64() > 0 && unit_operations.find("\"kind\": \"entry\"") != String::npos && unit_operations.find("\"kind\": \"component\"") != String::npos && unit_operations.find("\"materialize_us\"") != String::npos,
|
||||
perf["entry_unit_load_count"].to_u64() == 1 && perf["entry_unit_materialize_us"].to_u64() > 0 && perf["dynamic_include_load_count"].to_u64() > 0 && perf["dynamic_include_materialize_us"].to_u64() > 0 && perf["component_loaded_reuse_count"].to_u64() > 0 && unit_operations.find("\"kind\": \"entry\"") != String::npos && unit_operations.find("\"kind\": \"component\"") != String::npos && unit_operations.find("\"materialize_us\"") != String::npos,
|
||||
unit_operations
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user