kivy/kivy — pull request #662 by akshayaurora (2012-09-02 00:32:04+00:00)
Title: Faster text input insertion and deletion

Using the perf test from here https://github.com/kivy/kivy/pull/661. This is the difference I get.

With master branch
----------------------------

```
=====================
Test: load_large_text
=====================
loading uix/textinput.py....
putting text in textinput
mem usage after test
44 MB
------------------------------------------
Loaded 1602 lines 1.22284793854 secs
------------------------------------------
=====================
Test: stress_insert
=====================
[INFO ] [Clipboard ] using as clipboard provider
Done!
pasted 1602 lines 9.0 times
mem usage after test
120 MB
total lines in text input: 17612
--------------------------------------
total time elapsed: 27.5229020119
--------------------------------------
=====================
Test: stress_del
=====================
Done!
deleted 210 characters 9 times
mem usage after test
159 MB
total lines in text input: 17553
--------------------------------------
total time elapsed: 75.9813170433
--------------------------------------
=====================
Test: stress_selection
=====================
Done!
mem usage after test
159 MB
--------------------------------------
total time elapsed: 0
--------------------------------------
===================
All Tests Completed
===================
```

with this branch
------------------------
```
=====================
Test: load_large_text
=====================
loading uix/textinput.py....
putting text in textinput
mem usage after test
45 MB
------------------------------------------
Loaded 1699 lines 0.942888975143 secs
------------------------------------------
=====================
Test: stress_insert
=====================
[INFO ] [Clipboard ] using as clipboard provider
Done!
pasted 1699 lines 8.0 times
mem usage after test
89 MB
total lines in text input: 16981
--------------------------------------
total time elapsed: 3.90121006966
--------------------------------------
=====================
Test: stress_del
=====================
Done!
deleted 210 characters 9 times
mem usage after test
91 MB
total lines in text input: 16922
--------------------------------------
total time elapsed: 2.36115598679
--------------------------------------
=====================
Test: stress_selection
=====================
Done!
mem usage after test
91 MB
--------------------------------------
total time elapsed: 0
--------------------------------------
===================
All Tests Completed
===================
```