|
|
| No such thing as a small change | |
| PerlMonks |
Re^3: Documentation of REGEXP support in DBD::SQLite?by LanX (Saint) |
| on Nov 14, 2024 at 20:59 UTC ( [id://11162704]=note: print w/replies, xml ) | Need Help?? |
|
I don't know if they perform better. You have to test it. Native means for me without call overhead and efficiently compiled (subset of) regexes. Regarding indexes, I can only imagine a small subset of regexes capable to profit from them, unless a lot of special case optimisation was implemented¹. It should be quite complicated to achieve this with a pluggable extension... But again I don't know ... This you should better ask at a DBM-board.
Cheers Rolf
¹) I'm not even sure a substring search with LIKE %substr% can take advantage from the index, the differences in your benchmark are not in magnitudes, this could be easily explained with "call overhead and efficiently compiled code". A real "index search" should be dramatically faster than just factor 4. And, as a side note, your regexes were much more complicated than a substr search. Apples and oranges...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||