Skip to content

Possible speed-up for accelerated functions #22

Description

@DavidKinder

At the moment, accelerated functions are dealt with by checking (at the label do_enter_function_L1) if L1 contains the address of an accelerated function, and calling it if it is. This certainly works, but it does mean that the call to look up the accelerated function (accel_get_func()) occurs every time the call to the function is executed.

However, if the function address is a constant, it ought to be better to move this into Git's JIT logic and directly call the accelerated function. Testing would be needed to determine if this produced a noticable improvement or not. It would also mean that the accelfunc opcode would need to flush the git code cache when called.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions