<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hallo Slide,<br>
<br>
thank you for your answer. I don't knwo if iTextSharp uses
IDisposable. I admit, I use it as a block box, but at least I
suppose it's well written, because I think it is a proven tool.<br>
<br>
... and I apologize: I have found the mistake in my own code now.
It was a list which - unnecessarily - grew with every document and
which was worked upon rather costly. So I caused the problem
myself. The program has a constant throughput, and for now I'm
happy.<br>
<br>
But I still have no safe way to analyze such problems, and there
are still questions which I don't have an answer for: <br>
<br>
Is ipy kosher in it's memory handling? <br>
Where does this ever growing number of GCHandles (shown by
sysinternals procexp) come from? Can I simply ignore it?<br>
Is it good practice to use explicit GC.Collect()-calls?<br>
<br>
If anyone can share her/his experience in these fields, I would be
happy.<br>
<br>
Thanks in advance<br>
Peter Schwalm<br>
<br>
<br>
<br>
<br>
<br>
Am 10.12.2013 02:19, schrieb Slide:<br>
</div>
<blockquote
cite="mid:CAPiUgVfefFYw8WnOjMaKGfYO_Qxp01z7dv=4j3f5kxnCqXtnRQ@mail.gmail.com"
type="cite">
<p dir="ltr">Does itextsharp implement idisposable for any objects
you are using?</p>
<div class="gmail_quote">On Dec 9, 2013 5:19 PM, "Peter Schwalm"
<<a moz-do-not-send="true" href="mailto:ps@peter-schwalm.de">ps@peter-schwalm.de</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have an ipy script that manipulates several thousand .pdf
documents in a single run via itextsharp. I observe that it is
permanently getting slower. After starting the program it
processes about 10 documents per second, after processing 5000
documents it does only process 3 oder 4 docs per second.<br>
<br>
I have already in .net GC garbage collection calls which made
the situation something better (before that it was still
worse).<br>
<br>
Does anyone know if this could a fragmention problem? And what
I could against it?<br>
<br>
Another peculiarity:<br>
<br>
in sysinternals procexp I can see that the memory usage rises
during the excecution, but - after I inserted the GC.Collect()
calls - relative moderately. What rises constantly are the GC
handles (about 170.000 after 8000 documents). If I read the
docs it looks as if GCHandles are handles that make managed
memory accessible for non-managed programs.<br>
<br>
Does anyone know where these GC handles come from, if they
could be the cause of my problems and what I could do against
them?<br>
<br>
Thanks in advance,<br>
Peter Schwalm<br>
<br>
<br>
_______________________________________________<br>
Ironpython-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Ironpython-users@python.org" target="_blank">Ironpython-users@python.org</a><br>
<a moz-do-not-send="true"
href="https://mail.python.org/mailman/listinfo/ironpython-users"
target="_blank">https://mail.python.org/mailman/listinfo/ironpython-users</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>