Comment #2 on issue 265 by m.niloc: Slow pasting http://code.google.com/p/yi-editor/issues/detail?id=265
I used the attached HackerMain to try to get a repeatable test. It measures the time to insert 'x' 1000 times into a new buffer then exits. Test 1 - Yi from darcs. Running "time yi": real 0m9.526s user 0m8.929s sys 0m0.212s Test 2 - Yi from darcs except with hunk ./Yi/UI/Vty.hs 211 + threadDelay 100000 (at the end of Vty.refresh) real 0m4.311s user 0m4.188s sys 0m0.060s Test 3 - Yi from darcs except with hunk ./Yi/Core.hs 95 - withEditor $ do prepAction + withEditor $ do --prepAction real 0m0.879s user 0m0.916s sys 0m0.040s Could calls to prepAction be avoided? Attachments: HackerMain.hs 807 bytes -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---