As a slight aside, I'm attempting to do this as it will save on IO, and I wont have to write a scavange routine to trash the old graphs.

As a counter-point to the desire to write a scavange routine to clean up old graph image files, I would direct your attention to aspects of temporary file handling described previously by myself here - In particular I would direct your attention to the File::Temp module which provides methods for creating and working with temporary files as anonymous STDIO streams which are not stored beyond the life of the file handle.

This approach, while still encompassing the aspect of IO hits, would allow you to generate your temporary image files without the need for an expensive clean up routine. Mind you though, if the site is only ever going to serve a small audience, is the IO performance hit really going to impact your application or system load greatly?

 


In reply to Re: Graph::Map and a Browser (no server side storing) by rob_au
in thread Graph::Map and a Browser (no server side storing) by Ryszard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.