<div dir="ltr"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

2-Wich is the correct way to use Fast providing:<br>
<br>
I have math functions called a lot at MouseMove events so I need them to <br>
be fast but to remain in memory<br>
<br>
so the Fast loading overhead time don't spoil its usage. I mean the <br>
funcion Fastenned is not that large, but its called<br>
<br>
say 10k times each MouseMove.<br>
<br>
I thougth using a module and declaring Static Fast.<br></blockquote><div><br></div><div class="gmail_quote">Static does nothing for module, they are already static.  I suggest to test function by function, which benefits from the JIT and only use it when absolutely necessary.</div><div class="gmail_quote">Why the function is called 10k times at each MouseMove? Can you cache anything  or calculate beforehand?<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Jussi<br></div><div class="gmail_quote"><br></div></div></div>