Skip Menu |

This queue is for tickets about the HTML-Hyphenate CPAN distribution.

Report information
The Basics
Id: 133832
Status: resolved
Priority: 0/
Queue: HTML-Hyphenate

People
Owner: IPENBURG [...] cpan.org
Requestors: IPENBURG [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Assess performance
Run some performance tests to figure out how much impact it would have on a workflow to hyphenate large volumes. What are the chokepoints, and how would caching improve things?
Replacing textnodes in the DOM was the most expensive action, so just checking if the replacement differs from the current value before doing the replacement made a huge difference because a lot of nodes didn't get hyphenated because none of the words were long enough to qualify based on the min_length setting. This made the benchmark 8 times faster because only about 1/8th of the nodes were changed by the hyphenation.