Skip to content

Conversation

@gasche
Copy link

@gasche gasche commented Sep 22, 2015

The code changes have been tested to work on 4.00, 4.01 (using the backward-compatibility ocamlfind package for bytes) and 4.02.

gasche added 3 commits June 16, 2013 08:34
We now depend on the 'bytes' ocamlfind package, which provides
compatibility of Bytes-using code on older OCaml versions.

The only place where the new code is not equivalent to the previous
one is the reading of section names in index.ml: we allocate a new
string for each section name read, while the previous code mutated
a buffer in place. Allocating a Bytes buffer in place would be doable,
but then we would use Bytes.to_string to match against section name
strings (so doing an allocation in any case), or would have to use an
unsafe operation in a place where that does not feel necessary.
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