On 10/11/2012 08:33 PM, Tim Starling wrote:
Then you would have to load a capability map with potentially hundreds
of entries at registration time, despite the fact that on most
requests, most of the hooks will never be called. It seems inefficient
to me. At least with the current system, the number of support
constants is small (4-5).
-- Tim Starling
We can cache them. If we use APC, an individual call to
Capabilities::has() should take about 5 to 6 μs.
—Victor.
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l