Closed dev-hann closed 3 months ago
Since @desconexo has been inactive for some time, I decided to continue to support this package. I have published a new one and let's discuss the issue there: https://pub.dev/packages/highlight_text_plus
I've submitted a pull request (#54) to address this performance issue.
Root cause analysis: The problem occurs when empty or whitespace-only strings are used as keys for HighlightedWord instances. This leads to excessive creation of MatchedElement items.
Impact: During profiling, I observed the creation of approximately 96 million MatchedElement instances, resulting in significant memory consumption.
Proposed solution: The pull request implements a filtering mechanism at the sorting stage to remove empty or whitespace-only keys before they can impact performance downstream.
Next steps: I kindly request a review of the proposed changes. Any feedback or suggestions for improvement would be greatly appreciated.
I used in ListView about 6-10 item which has a TextHighlight on Web. and restart App just stuck. after change to default text widget, works on..
Am i used wrong way?