Path to this page:
Subject: CVS commit: wip/ocaml-bin_prot
From: Hiramatsu Yoshifumi
Date: 2015-02-13 09:54:40
Message id: E1YMC1a-0007qn-Fn@sfs-ml-4.v29.ch3.sourceforge.com
Log Message:
Update ocaml-bin_prot to 112.17.00.
Changes from previous:
----------------------
## 112.17.00
- Added `Bin_prot.Blob`, formerly known as `Core_extended.Wrapped`,
which has efficient handling of size-prefixed bin-io values in cases
where serialization can be bypassed.
## 112.06.00
- Sped up `float` and `float array` operations.
- Removed a use of `Obj.magic` in code generated by `pa_bin_prot` for
polymorphic variants that led to memory unsafety.
Previously, `pa_bin_prot` generated this kind of code for
polymorphic variants:
match Obj.magic (read_int buf pos) with
| `A as x -> x
| `B as x -> x
| `C -> `C (read_float buf pos)
| _ -> fail
and this caused the compiler to assume the result is an immediate
value. To fix this we removed the `as x -> x` and used the computed
integer hash.
Files: