View Single Post
Old 03-22-2019, 09:38 PM   #21
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 819
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
I've attached an .rtf with all the regexes I run, in order (and notes to myself about what each regex is supposed to do). It's quite tedious, lol, but I'd rather fix things up front than be annoyed by problems in the middle of reading. The memory leak shows up most quickly in non-fiction books with lots of formatting, like footnotes, index entries, bibliographies with a href links, etc. The more complicated the better.

Quote:
Originally Posted by KevinH View Post
It could be a regex related search and replace that has a memory leak we simply have not touched on. For a leak to show up in Valgrind or macOS "leaks tool" you have to actually exercise the problem code to detect a leak.

So it would really help us if you could please post a sample epub and a list of regex expressions you run typically and the order. That way we can try the exact samething you are doing in a leak detector to see if memory really is leaking. Please try to include an exact set of steps that seems to use the most memory.

If you prefer, you can pm DiapDealer and KevinH here with the link to the epub and list of regexes.

I really would like to get this tracked down and fixed.

Thanks,

KevinH

Last edited by icallaci; 05-24-2020 at 01:04 PM.
icallaci is offline   Reply With Quote