Closed Rider21 closed 1 month ago
I wrote a separate Plugin for ElloTL in order to make it work with htmlparser2
. Multisrc would use cheerio.
I think in react-native
they will be the same in terms of execution time.
But I will rewrite lightnovelwp to htmlparser2 later.
I think in
react-native
they will be the same in terms of execution time. But I will rewrite lightnovelwp to htmlparser2 later.
Nah, Cheerio keep whole DOM tree in memory which helps you to querySelector, and building that tree (load) consumes much resource which lead to lag in update library and global search
Hmm, then it's probably better to use native
regex, match, substr, etc.
It will be much faster as you will only search for what you need.
Not really, With htmlparser2, Time complexity is O(nk) where k is the number of switch case/if else statements, therefore you can consider as O(n). Meanwhile with regex, it takes O(nq) where q is the number of queries. Even worse if you use some bad regex
Added cpunovel plugin (closes #935) Added Ippotranslations plugin (closes #873) Plugin ellotl moved to lightnovelwp Fixed Ranobelib plugin (closes #960)