You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so the RegExp option is using 4 times the memory, while the scanner option is double to triple the speed. its possible other options are better as well, the above implementation is just what I came up with.
The text was updated successfully, but these errors were encountered:
bufio can work, and actually might be the better option, since text/scanner is typically used against Go source code. however we would probably need to define a custom split:
also if you haven't written any Go code in years, it might be better to simply archive this repo, or transfer ownership to me. I code Go daily, both professional and personal.
I like this package because it has no third party imports:
m3u/go.mod
Lines 1 to 3 in 45aea2b
but I noticed today the parsing is based on regular expression:
m3u/m3u.go
Line 74 in 45aea2b
using this file:
I get this result:
so the RegExp option is using 4 times the memory, while the scanner option is double to triple the speed. its possible other options are better as well, the above implementation is just what I came up with.
The text was updated successfully, but these errors were encountered: