Is there a performance cost to static inner class? Or should I just write the same static class as a non-inner class?
If your business/data logic determines that a class should be an inner class then make it an inner class.
If you are having performance problems take measurements to determine where the problem is and then work out what optimisations to make.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With