Re: C# very optimisation



When talking about image processing, a VERY big performance bonus can be
gained when using unmanaged (unsafe) code and pointers. I remember an
article saying unmanaged image processing can be up to 28 times faster than
managed.
Here it is
http://tinyurl.com/3sux8


"Ennixo" <ennixo@xxxxxxx> wrote in message
news:428af2d6$0$814$8fcfb975@xxxxxxxxxxxxxxxxxx
> Jon Skeet [C# MVP] a écrit :
> > Furthermore, micro-optimisations tend to come at the expense of the
> > code being as readable as it can be, which IMO should be the primary
> > goal.
>
> generaly yes, but this is for image processing, so i need to optimize as
> much as i can, even if the code becomes 10x bigger and unreadable


.



Relevant Pages

  • Re: Separate releases: Delphi 10 Win32 / Delphi 10 .Net
    ... > one has to figure out where the location of each scanline is before ... > each scanline for image processing instead of just using a certain ... > process DIBs seems to be easier and necessary using pointers. ...
    (borland.public.delphi.non-technical)
  • Re: C# very optimisation
    ... gained when using unmanaged (unsafe) code and pointers. ... I remember an article saying unmanaged image processing can be up to 28 times faster than managed. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unsafe Compile Errors
    ... The real use would be in an image processing application I am working on. ... the pixel data is currently stored in a managed two dimensional int array. ... A colleague of mine suggested I look into unsafe for performance gains in accessing the pixel data. ... fixed int test; ...
    (microsoft.public.dotnet.languages.csharp)