Use a cache to speed up doc->screen and screen->doc mapping on very long document.
This commit is contained in:
parent
007125025f
commit
a3496dfad1
4 changed files with 45 additions and 8 deletions
|
|
@ -85,7 +85,7 @@ exports.launch = function(env) {
|
|||
|
||||
// Make the lorem ipsum text a little bit longer.
|
||||
var loreIpsum = document.getElementById("plaintext").innerHTML;
|
||||
for (var i = 0; i < 5; i++) {
|
||||
for (var i = 0; i < 11; i++) {
|
||||
loreIpsum += loreIpsum;
|
||||
}
|
||||
docs.plain = new EditSession(loreIpsum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue