Re: advantage of boxing and unboxing



In response to all the postings in response to this posting:
Sorry. I read a few books by Francesco Balena, and he
says that this should be minimized where possible. I went
back to find a specific reference, and this is one thing he
says that is confirmed by the other responses to this post:

In general, it doesn't make sense to compare the performance
of a method that uses boxing with a similar method that doesn't.
An informal benchmark shows that a tight loop that calls a function
that requires boxing can be up to 30 times slower than a loop that
doesn't use boxing. However, you must repeat the loop 10 million
times to see a meaningful difference in absolute terms, so in
practice you should worry about boxing only in time-critical
code sections.

So I apologize, and will be more careful in the future with
information that I post.

Robin S.
--------------------------------------


"RobinS" <RobinS@xxxxxxxxxxxxxxx> wrote in message
news:M9adncKhkuNBe_bYnZ2dnUVZ_sadnZ2d@xxxxxxxxxxxxxx
It takes a lot of resources, so it should be minimized.

Robin S.
---------------
<ahjiang@xxxxxxxxx> wrote in message
news:1164685131.738810.26120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi there,,

what is the real advantage of boxing and unboxing operations in csharp?
tried looking ard the internet but couldnt find any articles on it.

appreciate any help





.



Relevant Pages

  • Re: Act Your Age
    ... you should review your own postings here to verify that no one ... attack a unique puzzle that I admitted I could not solve without ... this response as an olive branch that I hope you will react to ...
    (alt.video.dvd)
  • Re: rpm and wget -c
    ... Change and read the man page on F7 for wget and read it with care. ... resentment or poor attitude in Ric's postings in this thread. ... This isn't a bash Karl response. ... person when they breach it. ...
    (Fedora)
  • Re: MRSA - What Next?
    ... impossible to "disrupt" postings. ... A response is just that, a response, ... (as George Gardiner my official Christian name) ... Pat Gardiner ...
    (uk.business.agriculture)
  • Re: Help with a "Post" procedure.
    ... In a Google search for other postings on the same subject I happened across ... > I am trying to automate logging in to an HTTPS site which requires a ... I don't understand why Matt's response doesn't appear in this listing. ... The source code includes the following: ...
    (comp.lang.perl.misc)
  • Re: Time for Bush to Go
    ... and I do not recall anytime in the past that ... > whatever response you made to one of my postings that you have "proven" ... other than express your "opinion" that you did not agree with ...
    (soc.retirement)