angular-ellipsis icon indicating copy to clipboard operation
angular-ellipsis copied to clipboard

Added binary chop algorithm to speed up finding a string that fits.

Open btwelch opened this issue 9 years ago • 1 comments

This pull request introduces a binary chop algorithm to significantly improve the search for the best-fit string size for a given container. Without this, using a character-by-character (blank-ellipses-separator) check would be very inefficient.

btwelch avatar Oct 25 '16 15:10 btwelch

This would help me out a lot. I've got an infinite scroll feed with each item using this directive. Performance is suffering a bit right now.

kevindice avatar Jul 25 '17 21:07 kevindice