hotpdf icon indicating copy to clipboard operation
hotpdf copied to clipboard

Optimize memory in span_map

Open callegarimattia opened this issue 1 year ago • 0 comments

          @callegarimattia I identified one place we could optimise. In Span Map instead of storing all "HotCharacters" in the Span, we can only store the str values. This way we will save some memory.

Can you create an issue after merging this PR and we could work on it?

The function in question is: extract_spans - which you already flagged to be deprecated

Originally posted by @krishnasism in https://github.com/weareprestatech/hotpdf/issues/34#issuecomment-1892892533

callegarimattia avatar Jan 16 '24 08:01 callegarimattia