-
Using:
The caller will upload recipient information in a .CSV file as:
Recipient model:
API:
Consider |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can initialize the mappedRecipients list to have a larger initial capacity if you know the number of records will be large. This would avoid having to resize the internal buffer repeatedly, but probably won't have a significant impact on performance. Otherwise, this looks pretty optimal. How fast is it with the fluentValidator bit removed? |
Beta Was this translation helpful? Give feedback.
Initializing the mappedRecipients list with an initial capacity beforehand is not possible as I do not know the number of records. You can consider the fluentValidator is performing at its best. I'd probably choose between the options I have.