﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2458	De-duplication of icons from the python icon generator script	Dietmar Winkler	Martin Sjölund	"The new icon generator has one major flaw and that is it is a proper space hog. Lot's of Modelica classes have the same icon (e.g., `Modelica.Icons.Information`) still the generator will save a separate copy for each of them. There is a rather simple solution that is based on the same de-duplication principle that Git VCS uses for the internal data storage. All files are saved not under their name but using the hash of their content as file name and an index to connect the original file name with the correct stored file name.

Something similar can be done for the icon file names and we should not even need an index file. Here is the principle as you can implement it in Python. Not really sure how to hook this into the `GenDocumentation.mos` really:

{{{
>>> import hashlib
>>> filename=hashlib.sha1(""Modelica.Icons.Information"").hexdigest()+'.svg'
>>> print  filename
43a93cda6b266a395248252cb4b69d1e9a0837af.svg
}}}

This means all classes using the same class as icon can simply point to same svg file. No need to store another version.

,,I could not really find a correct component to assign this ticket to. It should probably belong to ""IconGenerator"" or ""Documentation Generator"",,"	enhancement	closed	high	1.9.1	Backend	trunk	fixed		
