Issue Feature Rejected

#73191Add flags to IconRegistry::$icons instead of calling IconRegistry::registerFlags

Michiel Roos 02/09/16, 09:09 updated 12/08/16, 22:04

Description

For each backend request IconRegistry::registerFlags is called. The method give a nice overview of available flags and all, but it takes 477 method calls that could be saved

The result of the method is always the same and is not cached.

I don’t think caching it makes sense here, it should be generated once and maintained in IconRegistry::$icons.

It does not happen often that countries get added or removed from the list. So Maintaining the class property does not seem to be a problem.

Reviews 1