Pixel checking in httphandler RRS feed

  • Question

  • User-1460394483 posted


    I have developed an httphandler which check the pixel colour of an image in the server. I think I am destroying the performance in the server although I created a class which read once the image and then I stored in an array the color of the pixels I thought this way was better than reading the image from the server each time there is a request.

    Do you know a better idea to improve the performance?



    Sunday, October 25, 2009 12:54 PM


  • User-2052324419 posted

    I think we'd need to know more about what you're actually checking for?  A database would probably give you better performance with perhaps a set of tables such as:

    a) Basic image data (name, type, uniqueid)

    b) Colour data - a list of all detected colours (RGB or hex) in every image

    c) A link table between which images have which colours (and maybe x and y pixel position(s) if required)

    Without knowing what you're checking for, it's difficult to say whether this would solve your problem, but scanning each pixel of an image each time is going to be CPU/RAM intensive for sure.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 25, 2009 6:26 PM