﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1740	create automatic short aliases of objects and functions	Alfonso Martínez de Lizarrondo		"In order to improve the compression I think that this idea might provide some extra savings.

In the code there are some objects like ""FCKTools"", each usage of it takes 8 bytes, doing a search in the compressed code it seems that it's used around 40 times. If the packager would be able to replace those ocurrences with something like $T then it could mean a saving around 200-240 bytes (it needs to take into account that now it needs to do $T=FCKTools={};). The same principle could be applied to other objects that are used several times, and also to their functions: FCKTools.CreateBogusBR -> $T.CBBR or $T.R or whatever.

Important: the original object and function names should be preserved so there are no changes required to the dialogs or plugins calling the functions, as well as making it easy to write such external code.

The code should try to find out automatically all the objects and functions that are worth renaming: if a function is used only once then creating its alias means that now the code is bigger than the original function.

Now that we are at it, this kind of code analysis could be used to find out functions that are never called (it should just output their names because they might be called from the dialog of FCKeditor.html or any other known place), and so help review if there is some dead code lying around.

"	New Feature	closed	Normal	CKEditor 3.0	Project : CKPackager		fixed	Confirmed	
