Description
There are some cases, when part or the whole component tree is refreshed, in which it is not necessary to calculate the generated component id. Instead, it is possible to reorganize the code a little bit and add FaceletCompositionContext.incrementUniqueComponentId() to cause the same effect without generate the instance. An increment in a counter will be always faster than any check in the cache or any unnecessary String generation.
Remember there is a static table for generated component ids, so the effect is minimal in typical cases, but anyway I think it is worth to do it because in dynamic parts, the static table is not used.