Search Unity

Weird speed issue

Discussion in 'Scripting' started by FatIgor, Jul 29, 2016.

  1. FatIgor

    FatIgor

    Joined:
    Sep 13, 2015
    Posts:
    29
    I have an 880,000 line XML file. I wrote some code, in C#, in DevStudio to process it. Takes 0.6 seconds.

    Drop it straight into Unity, takes over a minute whether in editor, or if I build and run as a PC exe.

    I run it on mobile, it takes 8 seconds on a Samsung S6. On iPhone 5, takes 11 seconds.

    I load the whole thing into memory (30Meg file) and use a memorystream to process through it.

    Seems very odd to me, my desktop has a lot more grunt than my mobiles. Especially as it works fine when built in DevStudio.
     
  2. image28

    image28

    Joined:
    Jul 17, 2013
    Posts:
    457
    What does a deep profile say.