In scribunto, a call to mw.title.new("page name") is very expensive.
I'm not sure, but it may be a way to accelerate: calculating a key on a 64-bit integer, like a CRC, from the name of the page, and creating an index on that key.
Because there may be duplicates on this key, it would lead to a short table of some pages, fast to manage.
Perhaps we could include versions in the CRC.
And even wiki-name ?
Overall, we would change a heavy search to a fast search.
Version: unspecified
Severity: enhancement