Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I can't really comment as I gave up trying to get Image::Magik going on my machine after 3 attempts. I rarely have the need to automate image stuff, and have (what I consider) to be superior tools available for doing this sort of thing manually.

(If you've never seen the performance and tightness of the Xara graphics tools, particularly Xara X, take a look, they have free demos available for download. Note:Just a very satisfied user. No commercial or personal relationships with the company.)

Anyway, my speculation would be that at some point, the image matrices in Image::Magic are stored and manipulated using perl array's, possibly they are expanded on demand rather than preallocated and it is the repeated, incremental increase in the size of these arrays that is responsible for the memory (TIFFs can be very memory hungry) consumption, and consequently the cpu consumption.

Manipulating large, but relatively static chunks of binary image data is one of the few applications where perl's arrays aren't really of benefit.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller

In reply to Re: Re: Re: Perl::Magick maxes my systems processor usage by BrowserUk
in thread Perl::Magick maxes my systems processor usage by MrCromeDome

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2023-12-10 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (39 votes). Check out past polls.

    Notices?