_menu_router_save() currently does a db_delete('menu_router')->execute() which ought to be a db_truncate() - that way MySQL can clear the whole table a lot quicker.

This is at most a hundred milliseconds or so savings when rebuilding the router, but tagging performance anyway.

CommentFileSizeAuthor
#2 truncate.patch634 bytescatch
truncate.patch623 bytescatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

catch’s picture

Status: Needs work » Needs review
FileSize
634 bytes

I'll execute you test bot :p

Dries’s picture

Status: Needs review » Fixed

Small performance win. Committed!

Status: Fixed » Closed (fixed)
Issue tags: -Performance

Automatically closed -- issue fixed for 2 weeks with no activity.