I'm planning on enforcing a rule in my project to write the codes for a single filter or hook in a single function for easier code maintenance, so instead of having
add_filter('wp','function_a');
function_a() {
//code A goes here
}
add_filter('wp','function_b');
function_b() {
//code B goes here
}
It will be reduced to:
add_filter('wp','function_ab');
function_ab() {
//code A goes here
//code B goes here
}
My question is, is there also a significant performance benefit by doing this?