Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Using QScriptEngine many times

    General and Desktop
    1
    2
    1361
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      niki4321 last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • N
        niki4321 last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post