AppleScript名:1Dリストを指定個数ごとにリスト化して2D化 v3.2 |
use AppleScript version "2.4" use scripting additions use framework "Foundation" use bPlus : script "BridgePlus" –https://www.macosxautomation.com/applescript/apps/BridgePlus.html script spd property aList : {} end script –テストデータ作成 set aList of spd to {} repeat 100000 times set the end of aList of spd to (random number from 10000 to 9999) end repeat set a1Dat to current application’s NSDate’s timeIntervalSinceReferenceDate() –時間計測 set aGroupNum to 100000 set b to (current application’s SMSForder’s subarraysFrom:(aList of spd) groupedBy:aGroupNum |error|:(missing value)) as list set b1Dat to current application’s NSDate’s timeIntervalSinceReferenceDate() –時間計測 set c1Dat to b1Dat – a1Dat –> 0.688337981701 |
More from my site
(Visited 13 times, 1 visits today)