Hi Thomas,

2014-08-07 17:25 GMT+02:00 Thomas Bany <mun.sys...@gmail.com>:

> Hi everyone,
>
> I'm trying to reduce the computation time of the following pseudo-code:
>
> - memory allocation (~40 doubles)
> - object heap to C heap copying
> - NativeBoost call (nbCall:)
> - memory freeing
>
> The time profiling results are bellow:
>
> - 24*3600 calls : > 1 minute
> - 24*3600 calls with only memory allocation and copying : < 1 second
> - 1 call with a 24*3600 loop inside de C code : < 1 second
>
> So it appears that the very coslty step is the transition from Pharo to C.
> And I was wondering if it was possible to drasticly reduce this time by
> doing something like, generate the the machine code once and call it
> multiple time ?
>

the machine code for the marshalling of the arguments is generated one time
for all.
so the penalty does not come from there.

please send the code you wrote for these micro-benchs so I can better
understand what happens.

Luc


>
> Thanks in advance !
>
> Thomas.
>

Reply via email to