prewk/xml-string-streamer

No nodes found when file is smaller than chunk size

Closed this issue · 1 comments

Hi, first of all you made a great and really fast API. But I think I've found a possible bug:

When contents of filename is shorter than the chunk length provided, no nodes are matched. When I made the chunk size smaller, everything started to work.

I was using the convenience method for UniqueNode parser and in the end I've used a workaround that sets the chunksize to min(filesize, predefined constant) which seems to work fine.

Interesting, I'll look into it