PDI-10897 : Using a mapping (simple) adds about 20% performance penalty
Figured out that opening the mapping from the sample caused a problem.
This does some code hardening.