bitextor / pdf-extract

PDF parser and converter to HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArrayList appears to exist solely to have its minimum taken

kpu opened this issue · comments

The objlinetop object appears to exist as an ArrayList solely so that later code can take the minimum value.

minlinetop = Collections.min(objlinetop);

Replace with a double and take the minimum on the fly. Same for many of the other objects in this function.

Data is no longer kept in the collection as part of optimizations. The rewrite has removed this issue. Min value is calculated on the fly.