﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8581	Embedded SVG leads to very high memory consumption	imagic	team	"When using embedded SVGs as image/symbols the memory consumption of JOSM rises very fast.

Example of an embedded SVG:
repeat-image: ""data:image/svg+xml,<svg><rect x='10' y='10' width='50' height='20' fill='white' stroke='blue' stroke-width='2px'/><line x1='18' y1='37' x2='50' y2='5' stroke='black' stroke-width='1.5px'/></svg>"";

Currently if multiple images have the same SVG code they are rendered and cached independently which lead to massive memory consumption. Embedded SVGs should be cached based on their actual SVG code to prevent this.

Attached is a JOSM style that heavily depends on embedded SVGs. A region that quickly lead to the issue is http://www.openstreetmap.org/?lat=47.06554&lon=15.43302&zoom=17&layers=M . When viewing even a small area in this region memory consumption will raise by multiples of 100MB and quickly lead to an out of memory exception.
"	defect	closed	major	14.01	Core mappaint	latest	fixed	SVG	
