Yes, but as you surely know VM heap has maximum memory and allocated memory.
With largeHeap my app on my phone has 512 MB of maximum memory.
I’ll try to explain better.
If I use forDesktop() allocated memory grows and reaches 487.360 MB in less than 1 minute, even without do anything.
I tried several times, always the same allocated memory and 16 MB of free memory.
500 Km routing is calculated in about 2-3 seconds and allocated memory rises to 505-508 MB.
Longer routing cause OOM because allocated memory exceeds 512 MB.
If I use forMobile() after loading GH allocated memory is about 20 MB and stays there.
500 Km route is calculated in 7-8 seconds, allocated memory grows slowly and reaches about 50 MB.
With 585 Km route after about 2 minutes allocated memory is about 100 MB and still calculating.
So my question is if GH with forMobile() can allocate more memory and perform faster.