[mythtv-commits] Ticket #13517: Reducing memory usage by mythfilldatabase to 1/6 of original usage
MythTV
noreply at mythtv.org
Wed Feb 19 22:21:27 UTC 2020
#13517: Reducing memory usage by mythfilldatabase to 1/6 of original usage
---------------------------------------+-------------------------------
Reporter: Hans Dingemans | Owner: Peter Bennett
Type: Patch - Feature | Status: assigned
Priority: minor | Milestone: needs_triage
Component: MythTV - Mythfilldatabase | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
---------------------------------------+-------------------------------
Comment (by Peter Bennett):
I ran a bunch of tests on the latest patch and everything looks good.
With a valid file, it still performs as described above, using 698 MB
instead of 5.6 GB.
Changing one closing tag in the file results in an error termination with
a good message about an unterminated tag, and no database update.
Removing the final </tv> tag gives the same result, an error message with
no database update.
Adding extra tags (validly formatted), results in a successful load with
those tags ignored (as I would expect). The same result is obtained with
the current master version.
Deleting complete tags from the file also results in a valid load with
those fields not loaded (as expected). The same result is obtained with
the current master version.
As far as I can see, the program performs exactly as current master, but
uses only 12% of the memory. I recommend committing the changes.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13517#comment:15>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list