Xcode6中的慢数组声明

时间:2014-08-02 13:17:29

标签: arrays performance swift

在一个快速测试应用程序中我使用了一个包含38个元素的数组。见下文。 在编译应用程序时,它无法完成并在第2步陷入困境。 当使用少于20个元素时,它正常工作。

任何想法都错了吗?

    var legacyArray:NSArray = [
        ["usage":"eBay G", "name":"prologrmh", "pass":"aPassword"],
        ["usage":"Tipp24", "name":"Gargantua20", "pass":"aPassword"],
        ["usage":"DynDNS.com ", "name":"Gargantua20", "pass":"aPassword"],
        ["usage":"privat", "name":"gronnymaus", "pass":"aPassword"],
        ["usage":"macgadget.de", "name":"Pantagruel", "pass":"aPassword"],
        ["usage":"youTube.com", "name":"Pantagruel20", "pass":"aPassword"],
        ["usage":"Adobe", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"DHL myAT", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"Openbase", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"PayPal", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"Quoka", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"tvtv", "name":"RonaldHofmann", "pass":"aPassword"],
        ["usage":"TVInfo", "name":"Pantagruel20", "pass":"aPassword"],
        ["usage":"ronnyonthur", "name":"romy@jumbosoft.de", "pass":"aPassword"],
        ["usage":"DynDNS", "name":"RonaldMHofmann", "pass":"aPassword"],
        ["usage":"skype", "name":"ronny0944", "pass":"aPassword"],
        ["usage":"stayfriends", "name":"ronny@jumbosoft.de", "pass":"aPassword"],
        ["usage":"lotto-bw.de(2080763878)", "name":"ronnyka", "pass":"aPassword"],
        ["usage":"t-com", "name":"ronnyka", "pass":"aPassword"],
        ["usage":"trinity.NeoOffice", "name":"ronnyka", "pass":"aPassword"],
        ["usage":"Atrada", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"eBay P", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"Logitech Harmony 525", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"MacNews", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"MacOSX Hints", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"privat", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"quoka", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"www.cgi2you.com", "name":"ronnymta", "pass":"aPassword"],
        ["usage":"digitalfernsehen", "name":"ronnymta ", "pass":"aPassword"],
        ["usage":"Jabber", "name":"ronnymta@macme.de", "pass":"aPassword"],
        ["usage":"skype", "name":"ronnyOh", "pass":"aPassword"],
        ["usage":"g4clr", "name":"taubenchat.de", "pass":"aPassword"],
        ["usage":"NJT0O", "name":"DSP", "pass":"aPassword"],
        ["usage":"digitec", "name":"Gargantua20", "pass":"aPassword"],
        ["usage":"Webmail", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"ftpjum34888", "name":"prolog@jumbosoft.de", "pass":"aPassword"],
        ["usage":"Apfeltalk", "name":"Pantagruel", "pass":"aPassword"],
        ["usage":"MacWelt", "name":"Pantagruel", "pass":"aPassword"]
    ]

0 个答案:

没有答案