Large time difference when using core or s2tbx resamplers for S2 data (with view angles) from

Thanks a lot obarrilero
Update:
The above performances were evaluated with a jpy library implemented with jdk from oracle java 10.
I reset the whole snappy with jdk from java 8 and the time performances are now similar between S2_sampler and the generic sampler.
Nevertheless, the S2_sampler is very consuming in memory which is an issue when using snappy (memory cannot be freed).
Tristan