SthephanShinkufag/Dollchan-Extension-Tools — pull request #45 by Y0ba (2012-02-21 15:29:43+00:00)
Title: Ускорение работы скрипта.

Как и обещал.
Алсо, ложно-положительные замены времени [(мой пост)] тоже пофикшены.
Сравнение:

### Ычан

До:	С патчем:

initBoard: 15ms

initDelform: 36ms

replaceDelform: 197ms

initPosts: 147ms

addPanel: 4ms

addRefMap: 102ms

eventRefLink: 18ms

scriptCSS: 1ms

addPostButtons: 100ms

doChanges: 6ms

doPostFilters: 1ms

eventPostImg: 13ms

addLinkMP3: 4ms

addLinkTube: 10ms

addLinkImg: 4ms

saveHiddenPosts: 1ms

initBoard: 15ms

initDelform: 34ms

initPosts: 49ms

postsChanges: 418ms

doChanges: 6ms

updateRefMap: 31ms

eventRefLink: 25ms

scriptCSS: 1ms

doPostFilters: 0ms

eventPostImg: 14ms

addLinkMP3: 3ms

addLinkTube: 11ms

addLinkImg: 2ms

saveHiddenPosts: 1ms

### Краутчан

До:	С патчем:

initBoard: 14ms

initDelform: 23ms

replaceDelform: 541ms

initPosts: 72ms

addPanel: 4ms

addRefMap: 46ms

eventRefLink: 9ms

scriptCSS: 1ms

addPostButtons: 58ms

doChanges: 7ms

doPostFilters: 0ms

eventPostImg: 9ms

addLinkMP3: 2ms

addLinkTube: 2ms

addLinkImg: 1ms

saveHiddenPosts: 2ms

initBoard: 15ms

initDelform: 22ms

initPosts: 27ms

postsChanges: 669ms

doChanges: 12ms

updateRefMap: 14ms

eventRefLink: 13ms

scriptCSS: 1ms

doPostFilters: 0ms

eventPostImg: 9ms

addLinkMP3: 2ms

addLinkTube: 2ms

addLinkImg: 2ms

saveHiddenPosts: 1ms

[(мой пост)]: http://iichan.ru/b/res/2003279.html#2171934