Skip to content

nightly-2024-03-17: feat: add as_slice builtin function, add execution test (#4523)

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Mar 02:11
· 1456 commits to master since this release
6a9ea35
# Description

## Problem\*

Expected to resolve slowdown in
https://github.com/noir-lang/noir/pull/4504/

## Summary\*

Adds builtin function for `as_slice`, allowing it to be much more
efficient (`O(1)` instead of `O(n)`)

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: vezenovm <mvezenov@gmail.com>