Lookup will in most cases largely outperform your custom function, especially when you use the correct cache option. With the latter, there will be a time-consuming database roundtrip for each record in the data stream. When you use lookup and cache the lookup table, all processing will be done in memory, even when the lookup is called from different places in your DS job: the table will only be loaded once.
↧