Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Now that code can run multiple functions, make it a lot easier to take full advantage and put an endpoint in hook_boot.
D6 runs at DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE in _drupal_bootstrap() [6 of 9].
D7 runs in _drupal_bootstrap_page_header() [6 of 8].
D6: hook_boot bootstrap level takes about 70ms. Full level takes close to 300ms.
D7: hook_boot bootstrap level takes about 25ms. Full level takes close to 300ms.
Comment | File | Size | Author |
---|---|---|---|
#3 | httprl-1558456-3-fix-minor-bugs.patch | 1.29 KB | mikeytown2 |
#2 | httprl-1558456-1-hook-boot-callback.patch | 14.52 KB | mikeytown2 |
#1 | httprl-1558456-1-hook-boot-callback.patch | 11.16 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedMight need more work; but calling it quits today.
httprl_recursive_array_reference_extract needs documentation.
See if httprl_run_callback and httprl_run_function can be merged.
See if httprl_run_array can use httprl_run_function/callback.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedMerging functions isn't going to be easy. Skipping this for now. Removed httprl_caller.php as I can now accomplish the same goal using hook_boot with less overhead. The following patch has been committed.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedFix more bugs. Patch has been committed.