Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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:
    23
    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 Moderator

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