3 ms·
Yeah when I was doing Android development they have a lint that tells you not to allocate in `onDraw()`. I always thought.. what's the point of a garbage collec
by IshKebab 9y ago
Yeah when I was doing Android development they have a lint that tells you not to allocate in `onDraw()`. I always thought.. what's the point of a garbage collected language if you then have to carefully avoid allocation?
- shabbyrobe 9y agoSo that you can mostly avoid having to carefully avoid allocation!
- renox 9y agoUh? You should also avoid memory (de)allocation in 'realtime' part of your code even in languages without GCs!