Valdecy/pybibx

big file cant resolve

yqfun opened this issue · 3 comments

yqfun commented

When I use a large file about 15mb or so, it takes a long time to parse it, and through troubleshooting, I found that there seems to be a triple nested loop problem, but it still takes a long time to be unresponsive, have you encountered this problem?Have you ever encountered this problem?

If you can send over the .bib file or even just a relevant portion that replicates the issue, I'd be happy to take a closer look to offer more specific guidance.

yqfun commented

all.zip
image

sorry,i forgot it size,almost 45mb....and i find it need lots of time in _read_bib function in pbx.py,
无标题
this loop use long time ,is there any way to optimize?

I appreciate your attention to the computational complexity issue in the previous code version. I've refactored it, reducing the time complexity to an approximate O(n). I've conducted tests using the file you provided, and the program now executes in around 4 minutes. I'd like you to try the updated version, pybibx 3.2.4, to observe these performance improvements.