This is a special case of this question that I feel is particularly pertinent.
I'm working on a game for Android, and I'm planning on using Scala with libgdx. I'm planning on making a performant game, but not necessarily hyper-performant game. I saw libgdx's documentation on Garbage Collection, and this makes me think:
- Functional programming implies lots of immutable objects.
- Therefore, mutating an object requires making a new object.
- Thus, lots of objects get garbage collected, which degrades performance.
Is this an insurmountable problem? Are there any other significant problems with functional style on Android?
