А по идее должен работать быстрее, нет интерфейсных преобразований, что-то жрет быстродействие, похоже на парсер маркеров и цепей -- вольность написания требует жертв, как не печально Tad писал(а): Результаты суммировал и делил на 5
У меня на пяти циклах без деления столько
------------ Дoбавленo в 01.03:
Вот моя схема тестирования последнего релиза
Add(MainForm,3757232,21,210) { Width=376 Height=338 Position=1 link(onCreate,403507:doEvent1,[]) } Add(StrList,6625109,343,91) { FileName="probe.txt" Strings=#15:HTTP/1.1 200 OK|24:X-GData-User-Country: UA|60:Content-Type: application/atom+xml; charset=UTF-8; type=feed|38:Expires: Mon, 23 May 2011 11:12:35 GMT|35:Date: Mon, 23 May 2011 11:12:35 GMT|64:Cache-Control: private, max-age=0, must-revalidate, no-transform|7:Vary: *|18:GData-Version: 2.0|34:ETag: W/"A0YBRH8-fyp7ImA9WhZVEUk."|44:Last-Modified: Mon, 23 May 2011 11:12:35 GMT|26:Transfer-Encoding: chunked|31:X-Content-Type-Options: nosniff|27:X-Frame-Options: SAMEORIGIN|31:X-XSS-Protection: 1; mode=block|11:Server: GSE|0:|4:307E|1418:<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:app='http://www.w3.org/2007/app' xmlns:media='http://search.yahoo.com/mrss/' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' xmlns:yt='http://gdata.youtube.com/schemas/2007' gd:etag='W/"A0YBRH8-fyp7ImA9WhZVEUk."'><id>tag:youtube.com,2008:user:sxxxch:uploads</id><updated>2011-05-23T11:12:35.157Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><title>Uploads by sxxxch</title><logo>http://www.youtube.com/img/pic_youtubelogo_123x63.gif</logo><link rel='related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch?client=sxxxch'/><link rel='alternate' type='text/html' href='http://www.youtube.com/profile_videos?user=sxxxch'/><link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='http://uploads.gdata.youtube.com/feeds/api/users/sxxxch/uploads?client=sxxxch'/><link rel='hub' href='http://pubsubhubbub.appspot.com'/><link rel='http://schemas.google.com/g/2005#resumable-create-media' type='application/atom+xml' href='http://uploads.gdata.youtube.com/resumable/feeds/api/users/sxxxch/uploads?client=sxxxch'/><link rel='http://gdata.youtube.com/schemas/2007#action.getUploadToken' type='application/atom+xml' href='http://gdata.youtube.com/|2840:action/GetUploadToken?client=sxxxch'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads?client=sxxxch'/><link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/batch?client=sxxxch'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads?start-index=1&max-results=25&client=sxxxch'/><link rel='service' type='application/atomsvc+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads?alt=atom-service'/><author><name>sxxxch</name><uri>http://gdata.youtube.com/feeds/api/users/sxxxch</uri></author><generator version='2.0' uri='http://gdata.youtube.com/'>YouTube data API</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/"A0UFQ347eCp7ImA9WhZVEU4."'><id>tag:youtube.com,2008:video:8qwdfTHt59A</id><published>2011-05-18T02:27:11.000Z</published><updated>2011-05-23T08:26:52.000Z</updated><app:edited>2011-05-23T08:26:52.000Z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Entertainment' label='Entertainment'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='tegi'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='(ghsae.avi)'/><title>nazvanie</title><content type='application/x-shockwave-flash' src='http://www.youtube.com/v/8qwdfTHt59A?f=user_uploads&c=sxxxch&d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&app=youtube_gdata'/><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=8qwdfTHt59A&feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/8qwdfTHt59A/related?client=sxxxch'/><link rel='http://gdata.youtube.com/schemas/2007#video.captionTracks' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/8qwdfTHt59A/captions?client=sxxxch' yt:hasEntries='false'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=8qwdfTHt59A'/><link rel='http://gdata.youtube.com/schemas/2007#insight.views' type='text/html' href='http://insight.youtube.com/video-analytics/csvreports?query=8qwdfTHt59A&type=v&starttime=1303603200000&endtime=1306022400000&user_starttime=1305417600000&user_endtime=1306022400000&region=world&token=jilJkGUhJB8KxprSKcjD41zbrlp8MTMwNjE1MDk1NUAxMzA2MTQ5MTU1&hl=en_U|1256:S'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/8qwdfTHt59A?client=sxxxch'/><link rel='edit' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/8qwdfTHt59A?client=sxxxch'/><author><name>sxxxch</name><uri>http://gdata.youtube.com/feeds/api/users/sxxxch</uri></author><yt:accessControl action='comment' permission='allowed'/><yt:accessControl action='commentVote' permission='allowed'/><yt:accessControl action='videoRespond' permission='moderated'/><yt:accessControl action='rate' permission='allowed'/><yt:accessControl action='embed' permission='allowed'/><yt:accessControl action='list' permission='allowed'/><yt:accessControl action='syndicate' permission='allowed'/><gd:comments><gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/8qwdfTHt59A/comments?client=sxxxch' countHint='0'/></gd:comments><media:group><media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Entertainment</media:category><media:content url='http://www.youtube.com/v/8qwdfTHt59A?f=user_uploads&c=sxxxch&d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&app=youtube_gdata' type='application/x-shockwave-flash' medium|1420:='video' isDefault='true' expression='full' duration='18' yt:format='5'/><media:content url='rtsp://v8.cache2.c.youtube.com/ClMLENy73wIaSgnQ5-0xfR2s8hMYDSANFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='18' yt:format='1'/><media:content url='rtsp://v3.cache8.c.youtube.com/ClMLENy73wIaSgnQ5-0xfR2s8hMYESARFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='18' yt:format='6'/><media:credit role='uploader' scheme='urn:youtube'>sxxxch</media:credit><media:description type='plain'>opisanie</media:description><media:keywords>tegi, (ghsae.avi)</media:keywords><media:player url='http://www.youtube.com/watch?v=8qwdfTHt59A&feature=youtube_gdata_player'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/default.jpg' height='90' width='120' time='00:00:09' yt:name='default'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/hqdefault.jpg' height='360' width='480' yt:name='hqdefault'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/1.jpg' height='90' width='120' time='00:00:04.500' yt:name='start'/><media:thumbnail url='http://i.ytimg.com/vi/8qwdfTHt59A/2.jpg' height='90' width='120' time='00:00:09' yt:name='middle'/><media:thumbnail url='http://i.ytimg.com/vi/8qwd|1420:fTHt59A/3.jpg' height='90' width='120' time='00:00:13.500' yt:name='end'/><media:title type='plain'>nazvanie</media:title><yt:duration seconds='18'/><yt:private/><yt:uploaded>2011-05-18T02:27:11.000Z</yt:uploaded><yt:videoid>8qwdfTHt59A</yt:videoid></media:group><yt:statistics favoriteCount='0' viewCount='4'/></entry><entry gd:etag='W/"CkACSH47eCp7ImA9WhZVEUk."'><id>tag:youtube.com,2008:video:4-LRve8mg94</id><published>2011-05-18T02:27:07.000Z</published><updated>2011-05-23T08:52:49.000Z</updated><app:edited>2011-05-23T08:52:49.000Z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/><category scheme='http://gdata.youtube.com/schemas/2007/categories.cat' term='Entertainment' label='Entertainment'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='hentai'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='love'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='xxx'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='sex'/><category scheme='http://gdata.youtube.com/schemas/2007/keywords.cat' term='(aergg.avi)'/><title>hentai love xxx sex</title><content type='application/x-shockwave-flash' src='http://www.youtube.com/v/4-LRve8mg94?f=user_uploads&c=sxxxch&d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&app=you|1256:tube_gdata'/><link rel='alternate' type='text/html' href='http://www.youtube.com/watch?v=4-LRve8mg94&feature=youtube_gdata'/><link rel='http://gdata.youtube.com/schemas/2007#video.related' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/4-LRve8mg94/related?client=sxxxch'/><link rel='http://gdata.youtube.com/schemas/2007#video.captionTracks' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/4-LRve8mg94/captions?client=sxxxch' yt:hasEntries='false'/><link rel='http://gdata.youtube.com/schemas/2007#mobile' type='text/html' href='http://m.youtube.com/details?v=4-LRve8mg94'/><link rel='http://gdata.youtube.com/schemas/2007#insight.views' type='text/html' href='http://insight.youtube.com/video-analytics/csvreports?query=4-LRve8mg94&type=v&starttime=1303603200000&endtime=1306022400000&user_starttime=1305417600000&user_endtime=1306022400000&region=world&token=G876uUq2LeLXEKG7OImivMTfyPh8MTMwNjE1MDk1NUAxMzA2MTQ5MTU1&hl=en_US'/><link rel='self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/uploads/4-LRve8mg94?client=sxxxch'/><link rel='edit' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/users/sxxxch/|1420:uploads/4-LRve8mg94?client=sxxxch'/><author><name>sxxxch</name><uri>http://gdata.youtube.com/feeds/api/users/sxxxch</uri></author><yt:accessControl action='comment' permission='allowed'/><yt:accessControl action='commentVote' permission='allowed'/><yt:accessControl action='videoRespond' permission='moderated'/><yt:accessControl action='rate' permission='allowed'/><yt:accessControl action='embed' permission='allowed'/><yt:accessControl action='list' permission='allowed'/><yt:accessControl action='syndicate' permission='allowed'/><gd:comments><gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/4-LRve8mg94/comments?client=sxxxch' countHint='0'/></gd:comments><media:group><media:category label='Entertainment' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Entertainment</media:category><media:content url='http://www.youtube.com/v/4-LRve8mg94?f=user_uploads&c=sxxxch&d=AV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDm&app=youtube_gdata' type='application/x-shockwave-flash' medium='video' isDefault='true' expression='full' duration='38' yt:format='5'/><media:content url='rtsp://v4.cache6.c.youtube.com/ClMLENy73wIaSgnegybvvdHi4xMYDSANFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='38' yt:format='1'/><media:content url='rtsp://v4.cache8.c.youtube.com/ClMLENy73wIaS|1384:gnegybvvdHi4xMYESARFEIGc3h4eGNoSAZSDHVzZXJfdXBsb2Fkc3IhAV6a0DbOE44QeXwUw8dq6TAO88HsQjpE1a8d1GxQnGDmDA==/0/0/0/video.3gp' type='video/3gpp' medium='video' expression='full' duration='38' yt:format='6'/><media:credit role='uploader' scheme='urn:youtube'>sxxxch</media:credit><media:description type='plain'>hentai love xxx sex</media:description><media:keywords>hentai, love, xxx, sex, (aergg.avi)</media:keywords><media:player url='http://www.youtube.com/watch?v=4-LRve8mg94&feature=youtube_gdata_player'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/default.jpg' height='90' width='120' time='00:00:19' yt:name='default'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/hqdefault.jpg' height='360' width='480' yt:name='hqdefault'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/1.jpg' height='90' width='120' time='00:00:09.500' yt:name='start'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/2.jpg' height='90' width='120' time='00:00:19' yt:name='middle'/><media:thumbnail url='http://i.ytimg.com/vi/4-LRve8mg94/3.jpg' height='90' width='120' time='00:00:28.500' yt:name='end'/><media:title type='plain'>hentai love xxx sex</media:title><yt:duration seconds='38'/><yt:private/><yt:uploaded>2011-05-18T02:27:07.000Z</yt:uploaded><yt:videoid>4-LRve8mg94</yt:videoid></media:group><yt:statistics favoriteCount='0' viewCount='2'/></entry></feed>|1:0|0:| } Add(BlockFind,2689203,343,175) { IncludeBlock=1 StartBlock="<entry" EndBlock="</entry>" link(onSearch,14377089:doMultiBlockFind,[]) link(Text,14579553:Var2,[]) } Add(MultiBlockFind,14377089,462,175) { Count=4 TagList="{**c -- First Chain -- c**}\r\n{**s} <yt:videoid> {**x} </yt:videoid> {**e}\r\n\r\n{**c -- Second Chain -- c**} \r\n{**s} viewCount=' {**x} ' {**e}\r\n\r\n{**c -- Third Chain -- c**}\r\n{**s}\r\n link {**i} /> {**n}\r\n rel='edit' {**i} /> {**n} \r\n href=' {**x} '\r\n{**e}\r\n\r\n{**c -- Fourth Chain -- c**}\r\n{**s}\r\n <media:keywords> {**x} </media:keywords> {**n}\r\n ( {**x} )\r\n{**e}" link(onResult1,11359981:doValue,[]) link(onResult2,14158209:doValue,[(520,188)(520,216)]) link(onResult3,8294978:doValue,[(516,195)(516,251)]) link(onResult4,4177074:doValue,[(513,202)(513,286)]) } Add(Memory,11359981,553,175) { Default=String() } Add(Memory,14158209,546,210) { Default=String() } Add(FormatStr,4483670,532,329) { DataCount=4 Mask="%1;%2;%3;%4" link(onFString,3885004:doAdd,[]) link(Str1,4177074:Value,[]) link(Str2,8294978:Value,[]) link(Str3,14158209:Value,[]) link(Str4,11359981:Value,[]) } Add(Memory,8294978,539,245) { Default=String() } Add(Memory,4177074,532,280) { Default=String() link(onData,4483670:doString,[(630,286)(630,386)(520,386)(520,335)]) } Add(StringTable,3885004,588,329) { Width=360 Height=106 Align=2 Columns=#3:Имя|5:Адрес|10:Просмотров|2:ID| Redaction=1 Point(doSortDigit) } Add(BlockFind,10966976,532,448) { IncludeBlock=1 StartBlock="<yt:videoid>" EndBlock="</yt:videoid>" link(onSearch,6779765:doValue,[]) } Add(BlockFind,13141924,532,497) { IncludeBlock=1 StartBlock="viewCount='" EndBlock="'" link(onSearch,3245193:doValue,[]) } Add(Hub,12375461,455,448) { OutCount=4 link(onEvent1,10966976:doSearch,[]) link(onEvent2,13141924:doSearch,[(501,461)(501,503)]) link(onEvent3,3543200:doSearch,[(493,468)(493,552)]) link(onEvent4,5379198:doSearch,[(483,475)(483,608)]) } Add(BlockFind,3543200,532,546) { StartBlock="<link" EndBlock="/>" link(onSearch,5675883:doSearch,[]) } Add(BlockFind,5675883,581,546) { StartBlock="rel='edit'" EndBlock="/>" link(onSearch,13268008:doSearch,[]) } Add(BlockFind,13268008,630,546) { IncludeBlock=1 StartBlock="href='" EndBlock="'/>" link(onSearch,2900181:doValue,[]) } Add(BlockFind,5379198,532,602) { IncludeBlock=1 StartBlock="<media:keywords>" EndBlock="</media:keywords>" link(onSearch,8843358:doSearch,[]) } Add(BlockFind,8843358,581,602) { IncludeBlock=1 StartBlock="(" EndBlock=")" link(onSearch,397429:doValue,[]) } Add(StringTable,261290,777,665) { Top=174 Width=360 Height=126 Align=4 Columns=#3:Имя|5:Адрес|10:Просмотров|2:ID| Redaction=1 Point(doSortDigit) } Add(BlockFind,11017106,385,448) { IncludeBlock=1 StartBlock="<entry" EndBlock="</entry>" link(onSearch,12375461:doEvent1,[]) link(Text,14579553:Var3,[(391,159)]) } Add(Memory,6779765,714,448) { Default=String() } Add(Memory,3245193,707,497) { Default=String() } Add(FormatStr,7860064,693,665) { DataCount=4 Mask="%1;%2;%3;%4" link(onFString,261290:doAdd,[]) link(Str1,397429:Value,[]) link(Str2,2900181:Value,[]) link(Str3,3245193:Value,[]) link(Str4,6779765:Value,[]) } Add(Memory,2900181,700,546) { Default=String() } Add(Memory,397429,693,602) { Default=String() link(onData,7860064:doString,[(737,608)(737,619)(681,619)(681,671)]) } Add(InfoTip,6932778,441,406) { Info=#3:Old| Width=316 Height=298 Margin=5 } Add(GetDataEx,14579553,343,154) { link(Data,6625109:Text,[]) } Add(Hub,403507,77,224) { OutCount=4 link(onEvent1,13006199:doStart,[]) link(onEvent2,1437592:doFor,[(147,237)(147,181)]) link(onEvent3,9237703:doStart,[(166,244)(166,503)]) link(onEvent4,4742402:doFor,[(147,251)(147,454)]) } Add(Label,16392069,343,231) { Left=135 Top=115 Width=80 } Add(Label,16351666,343,504) { Left=135 Top=145 Width=80 } Add(TimeCounter,13006199,280,224) { Precision=1 link(onStop,16392069:doText,[]) } Add(TimeCounter,9237703,280,497) { Precision=1 link(onStop,16351666:doText,[]) } Add(For,1437592,203,175) { End=5 link(onEvent,2689203:doSearch,[]) link(onStop,13006199:doStop,[(257,188)(257,237)]) } Add(For,4742402,203,448) { End=5 link(onEvent,11017106:doSearch,[]) link(onStop,9237703:doStop,[(257,461)(257,510)]) }
|