Many thanks to BrowserUk for the excellent reply and apologies for the delay in responding. I have taken all these changes and incorporated them into my script. Are there any sources of information where these techniques are described? A cookbook for fast code if you will.

On attempting to measure the performance improvement, I discovered that the profile I posted above was in error. dws was absolutely correct in that another part of the code was in large part responsible for the slow execution. That being said, the version of GetMininalDataType that BrowserUk created ran against my test data in approximately 60% of the time of my inferior version.

Regards,
Dom.


In reply to Re: Re: (88% faster) Discovering minimal relational data types on large volumes by dbush
in thread Discovering minimal relational data types on large volumes by dbush

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.