Yoni Weiden wrote:
10KB Limit?
- How do I know when I have reached the limit?
Paste it into a text editor. But it's not a limit, it's a recommendation. I'm working on the (naive?) assumption that sysops care about performance too.
- Why is the limit so small - the link-black-list is way over 10KB, or so I
believe.
It's stored in the message cache, a single blob containing pretty much everything in the MediaWiki namespace. This blob is loaded and unserialized on every request. Currently on enwiki it is about 280KB. I wouldn't want to see this single feature take up a significant proportion of it.
Also there's the fact that this is implemented on the page view side, so it's called much more often than the spam blacklist, which only filters saves. The spam blacklist would be far too slow to work on the parser side. wfIsBadImage is currently profiling at 0.8ms per call, wfSpamBlacklistFilter is taking 505ms per call (it's very badly optimised at the moment).
-- Tim Starling