keiusui has asked for the wisdom of the Perl Monks concerning the following question:

I am creating a virtual world represented by grids of 10x10 pixels each as seen here: http://www.internetlifecycle.com/

The grid is constantly changing, so it needs to load in real-time and can't be cached.

Should I use (1) HTML table cells or (2) a dynamically generated gif (programmed in Perl) to generate the grid? I would like to minimize the server load and loading time as much as possible. Thanks so much!

Replies are listed 'Best First'.
Re: dynamic grid
by EvanCarroll (Chaplain) on Nov 24, 2005 at 09:20 UTC
    I would go with one dynamically generated picture. The client render time on that many cells is suicide.


    Evan Carroll
    www.EvanCarroll.com
Re: dynamic grid
by metaperl (Curate) on Nov 25, 2005 at 02:32 UTC
    If you do go with table cells, I think Matthew Sisk's HTML::ElementTable would be of great help.
Re: dynamic grid
by Zaxo (Archbishop) on Nov 24, 2005 at 09:30 UTC

    When I checked your link from cb, it seemed to go quickly at first, but then founder. It looked like a quadratic-or-worse algo of some kind.

    Without any knowledge of your data or what you're doing with it, I doubt if there is much help on offer here.

    After Compline,
    Zaxo