Using QScriptEngine many times



  • Hi,

    I wrote a script that is invoked many times. Each time it runs slower and slower. Why is this and how to overcome it?



  • Time spent on the command like this:
    @
    var ob = new my_object ();
    @
    I believe that the problem connected with accumulation of garbage, but an explicit call of the garbage collector does not help.

    Edit: please 1) use @ tags around code sections, and 2) use the edit link to add new information rather than posting another message; Andre


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.