Closed (won't fix)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 May 2011 at 10:29 UTC
Updated:
19 Jun 2013 at 08:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
longwaveAs an example, the attached patch moves hook_uc_cart_pane() and subsequent functions into .uc_cart.inc files which are loaded on demand, reducing code weight in .module files as follows:
hook_uc_cart_pane() is only invoked from /cart and the cart pane admin pages, so this saves 708 lines of code from being loaded at all other times (if all four modules are enabled). Repeating this for other hooks should have similar benefits in reducing memory usage and also helps organise the code better.
In order to test this patch you must clear cache after applying it.
Comment #3
longwaveNot sure this is worth bothering with now.
Comment #4
longwaveDefinitely not worth changing this now.