-
Notifications
You must be signed in to change notification settings - Fork 791
Closed
novalina26/anchor
#1Description
Description
Browser gets stuck in 100% CPU for a long time whenever reloading after a code change, via Webpack.
Expected behavior
Shouldn't do that.
Actual behavior
Gets stuck in haveTextSimilarity
calling levenshtein.get()
on two strings that are 96227 characters long.
Suffice to say, the Levenshtein implementation in fast-levenshtein
might be "fast", but it's not fast. If I modify haveTextSimilarity
to return false on huge strings, it no longer gets bogged down.
Why are the strings being compared so big? I don't know; I'm not using Webpack in any unusual way. My components are importing CSS such as ionicons
and which end up containing Base64-encoded source maps, which certainly contributes to the size.
Environment
React Hot Loader version: 4.3.11
- Operating system: macOS
- Browser and version: Chrome 69.0.3497.100
kromit, ahutchings and mishenkoa
Metadata
Metadata
Assignees
Labels
No labels