bobbingwide / oik-loader

WordPress Must Use plugin to load required plugins
0 stars 0 forks source link

Performance: Should the oik-loader index be more fragmented? #16

Open bobbingwide opened 2 years ago

bobbingwide commented 2 years ago

The current logic in oik-loader is to load the index then do a quick lookup for the URL or ID Is this the most efficient way of finding the plugins to activate? It doesn't seem to be. The file(s) have to be fully loaded before the URL or ID is located. If we were to predetermine the URL by the high level qualifier then we could load the file until we find it. Or if the request contains an ID we can look for that instead.

Would this be more or less efficient? And if we did decide to use multiple files, how would we know which ones to use and in which order? Could the automatic files be generated in priority order?