Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Mobile IL2CPP performance for android

Discussion in '5.3 Beta' started by fuy, Nov 6, 2015.

  1. fuy

    fuy

    Joined:
    Sep 24, 2014
    Posts:
    30
    i test performance for android il2cpp with this code:
    Code (CSharp):
    1.    int TestPerformance()
    2.     {
    3.         var keys = myDic.Keys;
    4.    
    5.         int total = 0;
    6.         foreach (var key in keys)
    7.         {
    8.             var valStr = myDic [key];
    9.             total += valStr.Length;
    10.         }
    11.  
    12.         return total;
    13.     }
    the myDic size is 10,000, type is Dictionary<string, string>
    the time cost of the iL2CPP version is about 21MS
    the time cost of the mono version is about only 8MS
     
  2. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    May wish to file a bug in case the post is missed by developers.