highlight.dart icon indicating copy to clipboard operation
highlight.dart copied to clipboard

Cache parsing results across widget rebuilds

Open hacker1024 opened this issue 3 years ago • 0 comments

At the moment, the HighlightView widget parses text in the build method. This is very inefficient.

This PR implements a StatefulWidget instead, caching the parsing results across rebuilts.

hacker1024 avatar Jun 22 '22 13:06 hacker1024