<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Itamar Turner-Trauring (aka Shtull-Trauring) wrote:
<blockquote cite="mid:1259417932.21413.8.camel@pintsize" type="cite">
<pre wrap="">On Sat, 2009-11-28 at 15:05 +0200, MārisR wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I wondering if its possible to load utidylib in thread, do processing
and after this kill thread and release memory? Or maybe something like
deferToProcess?
</pre>
</blockquote>
<pre wrap=""><!---->
1. You should report the bug to the utidylib authors, so they can fix it
or pass it on to tidy authors.
2. A thread wouldn't help... but a process certainly would.
<a class="moz-txt-link-freetext" href="https://launchpad.net/ampoule">https://launchpad.net/ampoule</a> may be helpful if you don't want to
implement your own process wrapper, or you could just run a sub-process
that takes input and output filenames on the command-line and pass data
around that way.
_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
</pre>
</blockquote>
Thanks for replay!<br>
I tried pytidylib, and have same issue with memory leak, unfortunately
I couldn't report bug to, because, tidylib is self patched by one c
programmer, but problem, is that he have no more time for it.<br>
After day on playing with ampoule, I got it working :) But I run into
another problem, AMP value length is limited to 64kb. Seems its a
struct pack limitation. Probably I could split message into chunks
<64kb each and feed to amp something like: pp.doWork(Tidy,
html={'chunk1': data1, 'chunk2': data2...} )<br>
or maybe there is more easy/clean way?<br>
</body>
</html>