Re: SimpleLibraryViews plugin update increases library build time by a factor of 10
adhawkins <adhawkins.akumjz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Sun, 22 May 2022 23:04:37 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote:
> SQLiteStudio has built-in support for regexp (https://sqlitestudio.pl).
>
> And my regex almost did work. I'm going to edit it (needs a '$' matcher
>
> at the end). SQLiteStudio didn't need to escape the slash ("[^\/]"). I'm
> not sure
> about DBI. Give it a try, and change to just "[^/]" if it doesn't work.
To be honest, I think I'll take your advice and stick with code I
understand. Regular expressions have always been something I've been a
bit uncomfortable with, so keeping the code simple is a good idea I
think. My new version does seem relatively performant which is good.
I've also taken your advice and rewritten the plugin so it does a single
search of the filesystem per scan. That code is now pushed to GitHub in
the 'recurse' branch if you wanted to take a look at what I believe is
the final version.
Just rewriting your 'build' script from several years ago, as in its
current state it didn't seem to handle versions with letters in them.
Once again, thanks so much for all your assistance in getting this far.
Perl is not a language I use regularly, so there's been a lot of
re-learning required in this work!
Andy
------------------------------------------------------------------------
adhawkins's Profile: http://forums.slimdevices.com/member.php?userid=650
View this thread: http://forums.slimdevices.com/showthread.php?t=116400