
sierra 
manual source

with PNG photo 
	py35, tk85: grows about 8M every 5 secs
	py36, tk86: grows about 3M every 4 secs

without photo
	both: some growth, but very minor => almost 0
	same for premove coding

with GIF and no PIL
	same on both as without photo => almost 0 growth
with GIF and PIL
	same on both as without photo => almost 0 growth

with JPEG and PIL
	same on both as without photo => almost 0 growth
	may be sligthly worse than GIF, but negligable
 
without -OR- without PIL, tk 8.6, PNG image
	grows about 3M every 5 seconds
	also botches tansparancies same way either way
with PIL, tk 8.5, PNG image
	grows about 8M every 5 seconds	
	also botches transparencies worse (vertical lines)
	tk85 cannot display PNG without PIL

==> TK version is irrelevant, though 8.5 leaks more than 8.6
==> PIL is irrelevant, though latest releases botch transpancies same as TK
==> PNG is real issue: on tk86 with or without PIL, on tk65 with PIL (only)

This leak is a Tk bug related to non-GIF images, not fully fixed in 8.6.
There is no Python app or lib code that can be changed to address this.

Solution:
Disallow (or advise against) non-GIF images on Mac, only.
Either disable PIL for Tk 8.5 to prevent PNGs, or explicitly 
rule-out non-GIF for all on Mac (8.6 leaks for PNGs non-PIL).
Allow other image types with ir without PIL on other platforms.


-----------------
POST PNG-DISALLOWED FIX


WITH PHOTO, tk85, elcap (same on sierra)

1.1% cpu

27.1M 6:18
52.8M 9:00
54.5M 9:06

25M in ~3 hrs
    8M/hr, 200M/DAY, 1.3G/WEEK
    cmp: firefox=1.63G, pyedit=1.5G, pymailgui=617M

30M in 3 hrs
    10M/hour, 240M/DAY, 1.68G/WEEK


WITHOUT PHOTO, tk85, elcap
0.9/1.1% cpu

24.8M 9:41
26.0M 9:50
29.2M 10:11
34.1M 10:42

    SAME AS WITH GIF PHOTO: 10M/hour


WITH FORCED GC

24.2M 11:24
33.%M 12:23

    NO EFFECT 


DIGITAL MODE
    SAME AS ANOLOG

MINIIZED
    NO GROWTH WHILE HIDDEN (BUT MAY GROW ON OPEN)
	=> fixed code to not update/redraw when iconified

--------
after no-redraw-when-minimized change


el Capitan

23.0M 12:12
23.0M 12:27
23.0M 12:35
23.0M  1:34

23.3 when reopened


sierra

33.9M 3:56 closed
33.9M 4:06 
34.5M when reopened
  
34.5M 4:07 closed
34.5M 4:40
34.6M when reopened
