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

Update custom_operations initialization #54

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

dra27
Copy link
Contributor

@dra27 dra27 commented Oct 28, 2020

Split off from #50. compare_ext (added in 3.12.1) now initialised with the default function (this would have been initialised to NULL before, which is compatible). However, it allows fixed_length to be specified for 4.08+. I have now checked and this is a compatible change. This reduces the storage overhead of marshalled values by 12 bytes per value.

compare_ext (added in 3.12.1) now initialised with the default function.

fixed_length optimisation implemented for 4.08+
@rgrinberg
Copy link
Collaborator

CHANGES entry please.

@dra27 dra27 force-pushed the update-custom-ops branch from 22f38d4 to e7eec6c Compare October 28, 2020 16:03
@dra27
Copy link
Contributor Author

dra27 commented Oct 28, 2020

Done!

@rgrinberg rgrinberg merged commit 8bfd6e0 into andrenth:master Oct 28, 2020
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Oct 28, 2020
CHANGES:

## Fixes:

* Correct conversion from uint24 to other ints (andrenth/ocaml-stdint#39, @rixed)
* Fix conversion from all ints to uint24 and int24 (andrenth/ocaml-stdint#41, @rixed)
* Fix int24 failing to recover from casts (andrenth/ocaml-stdint#43, @rixed)
* Fix sign extensions (andrenth/ocaml-stdint#49, @rixed)
* `Long_val` returns `intnat`, previously `long` was used (andrenth/ocaml-stdint#53, @dra27)
* Reduce size of marshalled custom values on 4.08+ (andrenth/ocaml-stdint#54, @dra27)
* Store 128-bit ints as structs to prevent unaligned access (andrenth/ocaml-stdint#55, @dra27)

## New features:

* Add `of_substring` (andrenth/ocaml-stdint#49, @darlentar)
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Oct 28, 2020
CHANGES:

## Fixes:

* Correct conversion from uint24 to other ints (andrenth/ocaml-stdint#39, @rixed)
* Fix conversion from all ints to uint24 and int24 (andrenth/ocaml-stdint#41, @rixed)
* Fix int24 failing to recover from casts (andrenth/ocaml-stdint#43, @rixed)
* Fix sign extensions (andrenth/ocaml-stdint#49, @rixed)
* `Long_val` returns `intnat`, previously `long` was used (andrenth/ocaml-stdint#53, @dra27)
* Reduce size of marshalled custom values on 4.08+ (andrenth/ocaml-stdint#54, @dra27)
* Store 128-bit ints as structs to prevent unaligned access (andrenth/ocaml-stdint#55, @dra27)

## New features:

* Add `of_substring` (andrenth/ocaml-stdint#49, @darlentar)
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