Skip to content

Conversation

jdemeyer
Copy link
Contributor

Since we require Go 1.21 now, we can use unsafe.SliceData which simplifies quite a bit of code involving passing slices to C. I focused on the most important places in the code where such a conversion was done. If this PR is approved, I can do the other places also.

While I was at it, I also replaced UnixNano()/1000000 by UnixMilli() in code I was editing anyway.

@milindl
Copy link
Contributor

milindl commented Apr 18, 2024

Great stuff, thanks for this PR. I only skimmed the PR yet, but I do believe it makes sense.

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