gen_component speed improvements
gen_component speed improvements

- by splitting user state and gen_component state into to parameters
- by moving tail recursion from loop to on function, to avoid returning a tuple,
  which then deconstructed directly afterwards



l4u/scalaris-mirror,l4u/scalaris-mirror,l4u/scalaris-mirror,l4u/scalaris-mirror,l4u/scalaris-mirror,l4u/scalaris-mirror