Skip to content

Conversation

@vindvaki
Copy link

@vindvaki vindvaki commented Jul 10, 2024

When the underlying vector is displaced on another array, and potentially with a fill pointer below its capacity, we need to do some pointer arithmetic. We use babel to extract the underlying simple array because it's already a transitive dependency via cffi.

Without this patch, I have to copy non-simple vectors before inserting, which is wasteful.

When the underlying vector is displaced on another array, and
potentially with a fill pointer below its capacity, we need to do some
pointer arithmetic. We use babel to extract the underlying simple array
because it's already a transitive dependency via cffi.
We can just put start 0 and end nil. The underlying library figures out
the right values.
@vindvaki vindvaki marked this pull request as draft July 10, 2024 14:20
@vindvaki
Copy link
Author

Actually, I'm seeing some possible performance regressions locally with this patch. Need to investigate.

@vindvaki vindvaki marked this pull request as ready for review July 10, 2024 15:24
@vindvaki
Copy link
Author

vindvaki commented Jul 10, 2024

Actually, I'm seeing some possible performance regressions locally with this patch. Need to investigate.

The performance impact was due to some other changes in my program, not this contribution.

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