Haven't done real benchmarking for this yet. However I do think this could speed some things up:

* At the moment all variables are always loaded every page load (Even on cached pages of the LATE_PAGE_CACHE). So when you have installed like pathauto, og and did some custom emails you have all that information loaded every page which just is not neccesary and can get big when having quite some modules installed.
* Variable_set now clears the variable cache. So for example everytime cron runs your variables are cleared. Variables can now be set in a custom group. For example you can place all the cron variables in a 'cron' group making less writes to the cache.

Is this thing worth working out more? Any initial thoughts?

CommentFileSizeAuthor
variables_loading.patch12.7 KBR.Muilwijk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

R.Muilwijk’s picture

dww’s picture

Status: Needs review » Closed (duplicate)

#79008: make variable prefetching optional -- that's the oldest issue (that I know of) dealing with this problem.
See also #145164: DX: Use hook_variable_info to declare variables and defaults

dww’s picture

sorry for the cross posting -- I guess you found the others on your own. ;) But yeah, please add your thoughts and/or patch to the earlier issues instead of starting a new one like this. That way the discussion doesn't get needlessly forked and useful ideas lost. Thanks.