Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8434789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:45:13+00:00 2026-06-10T06:45:13+00:00

I have a problem in my application, it needs a heavy memory optimization, but

  • 0

I have a problem in my application, it needs a heavy memory optimization, but for now i have to deliver a test version of the application, i need something like “ramrush” as api can called from my application without any executables, Ramrush is solving my problem magically now, but i can’t deliver it with my app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:45:14+00:00Added an answer on June 10, 2026 at 6:45 am

    To solve the OP’s immediate needs (even if it’s a bit late today)

    • C# memory profile
    • Microsoft DebugDiag, see blog post

    There are two levels of memory optimization in image processing code.

    • At the easier level, the programmer tries to delete image objects that are no longer needed, as frequently and early as possible (i.e. after every line of code).
    • The more difficult level requires implementing some image processing steps as memory-efficient pipelines.

    One example:

    class RgbToGray : ImageSource
    {
        private ImageSource m_src;
        public RgbToGray(ImageSource src)
        {
            m_src = src;
        }
        public void GetPixels(int x0, int y0, int rectWidth, int rectHeight, out Pixel[,] result)
        {
            // omitted: validate parameters
            Pixel[,] temp = new Pixel[rectHeight, rectWidth];
            m_src.GetPixels(x0, y0, rectWidth, rectHeight, out temp);
            for (int y = y0; y < y0 + rectHeight; ++y)
            {
                for (int x = x0; x < x0 + rectWidth; ++x)
                {
                    result[y,x] = SomeCalculation(temp[y,x]);
                }
            }
        }
    };
    

    In this example, the RgbToGray performs an image processing on-demand, without requiring its own permanent memory usage, but instead relies on a temporary buffer. For this implementation to work, the caller must call GetPixels with a particular “buffer granularity” which must be smaller than the full image size, in order to achieve the memory-saving effect.

    (The particular framework I have in mind is Windows Imaging Component, but similar ideas can be found in many other frameworks such as OpenCV’s MatExpr template.)

    Apparently, not all frameworks allow such optimization.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I have a UDPlistener application that I need to write a unit test
i have a problem with my mvc3 application, i need to create some Validation
We're developing a data heavy modular web application stack with java but have little
I have problem with my Android application. I need an application that will send
I have the following problem: My application needs to inform a website of a
I have a problem: my application needs to draw some images on panels. I
I have problem with my application. I have table report, there are 2 column
I have problem doing OTA installation for my iPad application. I updated my enterprise
I have a problem linking an application for an embedded target. I'm developing on
i have a problem to distributing application with 2 project (one project with sub-project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.