Nothing in Maps (Kartographer) is counted as part of $wgExpensiveParserFunctionLimit, i.e. Parser::incrementExpensiveFunctionCount() is never called. We probably should do this in some cases:
- When there is a SPARQL "query": "…" in the GeoJSON. These call the Wikidata query service and can be arbitrarily expensive.
- When using "service": "geopoint" together with "ids": "Q42" what we really do is running a SPARQL query. It's a very cheap one. Still it calls the Wikidata Query service, so should probably be counted as well?
- Pulling a .map file from Commons is almost like including an image. That's not expensive.
A recent example where we started counting an existing feature as expensive is T316858: A page with an extreme amount of <syntaxhighlight> tags hits the RequestTimeout when trying to render. The main argument there was also that an external service (in that case a Python script) is called.