Skip to main content
Question

Change a string and efficiency of transfomers


joepk
Influencer
Forum|alt.badge.img+20
  • Influencer

Hi everyone,

 

If I want to change a numeric value of an attribute, I tend to use the ExpressionEvaluator. I kind of see it as the 'transformer equivalent' of the Arithmetic Editor.

Is there a 'transformer equivalent' of the Text Editor as well? I guess there is the StringReplacer, StringConcatenator, AttributeManager, etc., but which one would be the best/most efficient to use?

 

And speaking of efficiency, I have another question regarding transformers.

A colleague of mine told me a while ago that, for debugging's sake, it is wiser to use e.g. an AttributeCreator, AttributeRenamer and AttributeKeeper in series instead of using a single AttributeManager to perform all those tasks in one go. I tend to agree with them on that, but does this also have any consequences for performance? I can imagine the difference being minimal, but best practices and all that.

 

Thanks in advance!

2 replies

takashi
Influencer
  • December 14, 2023

Hi @joepk​ ,

I think StringConcatenator (Advanced mode) is almost equivalent to the Text Editor.


redgeographics
Celebrity
Forum|alt.badge.img+49

With regards to your 2nd question: while I do agree with the overall idea of keeping your workspaces small, there are times where a single AttributeManager can do a lot of stuff. In those cases I prefer to split it out a bit and use multiple transformers. There may be a slight performance hit with that but I think in the long run the overall maintainability of the workspace is more important than that.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings