I am running a live archive of a large wiki by importing incremental XML dumps regularly using importDump.php with the --no-updates option, since refreshing after each revision imported is not efficient.
After importing, I need to run refreshLinks.php for updating the links table etc.
I noticed that its efficiency of page filtering is poor since it's loading and checking each page via the WikiPage object. I then have to create my own version of refreshLinks.php for the task.
I would like to submit some improvements I made, I think they would also benefit T159512.