Re: [Caml-list] Bigarray question: Detecting subarrays, overlaps, ...

2012-03-01 Thread Goswin von Brederlow
Gerd Stolpmann i...@gerd-stolpmann.de writes: What I did not understand up to now: It is really easy to keep all this information in a helper data structure. Why extend Bigarray? Gerd A helper data structure would mean keeping track of that information on my own complicating the source and

Re: [Caml-list] Bigarray question: Detecting subarrays, overlaps, ...

2012-02-29 Thread Goswin von Brederlow
Gerd Stolpmann i...@gerd-stolpmann.de writes: Am Dienstag, den 28.02.2012, 21:17 +0100 schrieb Goswin von Brederlow: Hi, I'm implementing a RAID in userspace using ocaml and NBD (Network Block Device) as protocol to export the device. For this I'm using Bigarray.Array1 as buffer for data

Re: [Caml-list] Bigarray question: Detecting subarrays, overlaps, ...

2012-02-29 Thread Gerd Stolpmann
Am Mittwoch, den 29.02.2012, 10:23 +0100 schrieb Goswin von Brederlow: For efficiency each request stores all its data in a single Bigarray.Array1. For reasons of the RAID implementation large requests are split into 4k chunks using Bigarray.Array1.sub and grouped into stripes. The stripes

[Caml-list] Bigarray question: Detecting subarrays, overlaps, ...

2012-02-28 Thread Goswin von Brederlow
Hi, I'm implementing a RAID in userspace using ocaml and NBD (Network Block Device) as protocol to export the device. For this I'm using Bigarray.Array1 as buffer for data and wrote myself the right read(), write(), pread() and pwrite() stubs. The advantage of this (over strings) is that

Re: [Caml-list] Bigarray question: Detecting subarrays, overlaps, ...

2012-02-28 Thread Gerd Stolpmann
Am Dienstag, den 28.02.2012, 21:17 +0100 schrieb Goswin von Brederlow: Hi, I'm implementing a RAID in userspace using ocaml and NBD (Network Block Device) as protocol to export the device. For this I'm using Bigarray.Array1 as buffer for data and wrote myself the right read(), write(),