[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 1 16:06:18 UTC 2011


#15458: Lazy-load usermeta into the user object
-------------------------+------------------
 Reporter:  nacin        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.3
Component:  Performance  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by scribu):

 * keywords:  needs-patch => has-patch
 * milestone:  Future Release => 3.3


Comment:

 I'm not sure about the best way of handling large custom fields, but I do
 know that we can reduce the memory footprint in half:

 Currently, each field is stored twice: once in WP_User->data and once on
 the object directly. We can avoid this by using magic methods. So that's
 what [attachment:15458.diff] does.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15458#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list