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

Use libc strlen in janet_buffer_push_cstring #1314

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

williewillus
Copy link
Contributor

Use libc strlen in janet_buffer_push_cstring

Platform libc's often contains optimized assembly implementations of strlen, so take
advantage of them here instead of doing a naive count.

Platform libc's often contains optimized assembly implementations of strlen, so take
advantage of them here instead of doing a naive count.
@williewillus williewillus marked this pull request as ready for review October 20, 2023 06:31
@bakpakin bakpakin merged commit 46b3483 into janet-lang:master Oct 20, 2023
8 checks passed
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.

2 participants