What is faster: hook_form_alter or hook_form_FORM_ID_alter? I want my Drupal site be as fast as it can.
So I'm considering whether to use hook_form_alter with an if statement inside or hook_form_FORM_ID_alter.
I know that it's a bit more convenient to use the latter but I'd prefer to use the faster method.

Does somebody know which is faster and how much? And I don't only mean form_alter, but all hooks with an ID in it.
The hook_form_FORM_ID_alter is faster than hook_form_alter.

Modules can implement hook_form_FORM_ID_alter() to modify a specific form, rather than implementing hook_form_alter() and checking the form ID, or using long switch statements to alter multiple forms.

Form alter hooks are called in the following order:


hook_form_alter()
hook_form_BASE_FORM_ID_alter()
hook_form_FORM_ID_alter()


I hope this helps :)