This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
How to zero cost import from ffi? #505
Labels
bug
Something isn't working
no-changelog
Issues whose changes are covered by a PR and thus should not be shown in the changelog
Hi, thanks for the awesome work you're doing!
I tried using
import_array_from_c
to import a string array as described in guide, but was surprised to find out it doesn't seem to be zero cost (well - not constant cost). If I'm reading the the source code correctly I see that offsets and utf8 validity are checked. Is there any way to avoid this when importing from ffi? The overhead is unfortunately a blocker for my use case.The text was updated successfully, but these errors were encountered: