lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucenenet] jeme edited a comment on pull request #345: Reduce casting
Date Wed, 23 Sep 2020 13:42:16 GMT

jeme edited a comment on pull request #345:
URL: https://github.com/apache/lucenenet/pull/345#issuecomment-697372724


   @NightOwl888 While it does end up initializing a local variable, in this case it will be
a allocation on the stack though, and as far as i understand, this virtually has no cost associated
with it when you wan 't to reclaim it.
   
   It's my understanding that when you enter a method, a stack frame is allocated and all
you do when you exit the method again is rewind your stack pointer to where it was when you
entered. So it's only the allocation it self that has a cost, not the collection of it.
   
   (This is perhaps a bit simplified but I think it brings the understanding across)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message