Jump to content

Dalija Prasnikar

Members
  • Content Count

    1068
  • Joined

  • Last visited

  • Days Won

    91

Posts posted by Dalija Prasnikar


  1. 52 minutes ago, Richard_Stevens said:

    Thumbs up from me. We have a couple of VCL products that make heavy use of relatively complex, object-based libraries that we debated moving onto mobile - but were put off by the rats nest of potential issues and number of IFDEFS it would have needed. If in 12-18 months' time we can re-use those libraries more or less "as is" then that will be great.

    Just for the record, unless you have to change methods signatures - adding const param, and for some reason you need to keep old signature too, porting to ARC compiler itself does not require any IFDEFS. 

    All needed changes are compatible with all compilers.


  2. 2 hours ago, Lars Fosdal said:

    I welcomed ARC in principle, but there were three key problems for me:
    1. Having two different memory management models in our code base was not an option
    2. ARC carried an unexpectedly high performance penalty 
    3. The pitfalls of ARC were as many and as complex as for the classic reference count problems.

    1. Totally understandable. You cannot use ARC to its full potential and you are only paying the price.

     

    2. I assume it was Linux vs Windows,

    It would be interesting to see how it compares with ARC removed. Comparing x86 with ARM is comparing apples with oranges - ARC or no ARC. AFAIK, LLVM backend has some influence on performance, too. There are some reports about inefficient code generation - something not ARC related. 

    Performance mostly suffers because of existing code that is not written for ARC - unnecessary reference counting triggers are real performance killers. It is not fault of ARC per-se.  

     

    3. LOL - it is the same memory management model, (if you remove DisposeOf out of the picture) so pitfalls are exactly the same. Developing for ARC requires a bit different mindset.

×