Skip to content

How much more optimization is possible? #70

@oxysoft

Description

@oxysoft

Hello! we have used MoonSharp extensively in our game and the poor performance are starting to catch up onto us. Calls like Script.DoString result in a long chain of statement objects that unfold recursively. It seems that each opcode and structural element is an object! Crazy! In WattleScript, I notice that the statement objects are still class, so I am wondering what is the work that has been done in optimization so far, and whether we can do more as well, and what are some of the limitations. The DynValue is a very convenient type used all over MoonSharp, and turning it into a struct seems like it would require a fundamental rewrite.
Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions