Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize list building patterns #541

Merged
merged 5 commits into from
Jun 6, 2020
Merged

Optimize list building patterns #541

merged 5 commits into from
Jun 6, 2020

Conversation

vyzo
Copy link
Collaborator

@vyzo vyzo commented Jun 6, 2020

  • Extracts with-list-builder into its own module so that it can be used more pervasively across the stdlib without carrying an implicit dependency to std/srfi/1.
  • Optimizers list accumulation patterns across the stdlib; no more cons+reverse[!] loops, we either use with-list-builder or inline list accumulation, depending on what is more convenient and prudent.
  • Optimizes for-collect go generate code with inline list accumulation.
  • Optimizes iota to use inline list accumulation.

@vyzo vyzo requested a review from fare June 6, 2020 13:17
@vyzo vyzo merged commit d3e53cf into master Jun 6, 2020
@vyzo vyzo deleted the list-builder branch June 6, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant