Perl's Regexp::Common::balanced hangs on some strings
I'm using Regexp::Common::balanced to split up the contents of some latex files. For most files it works fine, but I've found some files for which it is very slow or hangs forever (or at least for hours). The problematic files aren't larger or smaller than ones the work, and the contents of all the files is similar. I've also found that if I concatenate a few of the working files into one file, the resulting file causes the misbehavior. Below is a minimal working example that demonstrates the behavior. The files range in size between 60 and 120 kB. I've tried a binary search by repeatedly bise
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.