Skip to content

Implement changes from @mfiano #12

@phoe

Description

@phoe

https://gist.github.com/mfiano/3ddf2810cf8101f66009c3fdde8b020b

  • The local swap functions are closing over state. Make them take the parent and left/right indices. To do this just return the left/right indices and wrap the callers in (setf parent-index ...).
  • You can lexibind some aref lookups that are called multiple times, particular the parent, left, and right priority.
  • In some various other places in the codebase, you can also lexibind the aref calls that are called more than once. I forget where though.

Also read-eval (ash 1 64) just to be sure it's a constant for implementations that don't do constant folding for whatever reason.

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