[wp-trac] [WordPress Trac] #32103: Multidimensional Customizer settings (options & theme mods) are not scalable
WordPress Trac
noreply at wordpress.org
Mon Oct 5 07:00:27 UTC 2015
#32103: Multidimensional Customizer settings (options & theme mods) are not
scalable
-------------------------------------------------+-------------------------
Reporter: Air. | Owner:
Type: defect (bug) | westonruter
Priority: normal | Status: accepted
Component: Customize | Milestone: 4.4
Severity: normal | Version: 3.4
Keywords: needs-testing needs-unit-tests has- | Resolution:
patch | Focuses:
| performance
-------------------------------------------------+-------------------------
Changes (by westonruter):
* keywords: needs-patch => needs-testing needs-unit-tests has-patch
Comment:
In [attachment:32103.wip2.diff], the increase in the number of
multidimensional settings shows performance changes from an quadratic
O(n^2^) to instead be a linear O(n), though actually the slope is so
shallow that it is much closer to a constant O(1). In other words,
instead of an exponential increase in time to render the preview when the
number of multidimensional settings increase, this patch yields preview
refresh times that are consistent whether there are 50 dirty settings or
500 dirty settings (200ms vs 300ms, in contrast to trunk at 650ms vs 49s,
respectively).
Patch is still WIP and needs new unit tests, as well as fixing a couple
broken unit tests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32103#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list