Re: [v8-users] Are functions which defined using eval or new Function() optimized?

2018-03-04 Thread Jakob Kummerow
On Sat, Mar 3, 2018 at 9:17 AM Koray wrote: > Hello Jakob, > > Thank you for your response. I will make sure to design my application > accordingly. > > My next question would be, does v8 optimize according to new prototype > changes after a while? Yes. > Or should I

Re: [v8-users] Are functions which defined using eval or new Function() optimized?

2018-03-03 Thread Koray
Hello Jakob, Thank you for your response. I will make sure to design my application accordingly. My next question would be, does v8 optimize according to new prototype changes after a while? Or should I restart the application in certain periods to make sure the application is optimized with

Re: [v8-users] Are functions which defined using eval or new Function() optimized?

2018-03-02 Thread Jakob Kummerow
Functions created with eval or new Function will get optimized (after a while, just like other functions -- nothing is optimized on first use). That said, modifying prototypes after the fact tends to have a performance impact, because V8 makes optimizations (all over the place) based on the

[v8-users] Are functions which defined using eval or new Function() optimized?

2018-03-02 Thread Koray
Forwarding here from Node.js group as this one is more appropriate. Hello, I have a real time application which will require constant updates / bug fixes. So I will be constantly defining new functions on prototypes or constructors. My question is, will there be a difference between functions