<robobo>
I don't understand this 'c Bigarray.layout : in type ('a, 'b) Bigarray.kind ->
<robobo>
'c Bigarray.layout -> int -> ('a, 'b, 'c) t,
<thelema>
to create a bigarray?
<robobo>
yes
<thelema>
you wanted a bigarray of int64s, so use Bigarray.int64 for the kind
<thelema>
for layout, just use Bigarray.c_layout (doesn't matter for 1d arrays)
<thelema>
well, c_layout starts indexing at 0, fortran_layout starts indexing at 1
<robobo>
ah, okey
<robobo>
thanks
<thelema>
so Array1.create int64 c_layout 10_000_000
<robobo>
okey thanks
ccasin has joined #ocaml
emmanuelux has joined #ocaml
Anarchos has joined #ocaml
mjonsson_ has joined #ocaml
mjonsson_ has quit [Client Quit]
jakedouglas has joined #ocaml
alexyk has quit [Quit: alexyk]
derdon has quit [Ping timeout: 258 seconds]
travisbrady has joined #ocaml
boscop_ has left #ocaml []
boscop has joined #ocaml
travisbrady has quit [Quit: travisbrady]
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
oriba has joined #ocaml
oriba has quit [Read error: Connection reset by peer]
ftrvxmtrx has joined #ocaml
rbancroft has joined #ocaml
ttamttam has joined #ocaml
derdon has joined #ocaml
neorab has quit [Quit: WeeChat 0.3.2]
alexyk has joined #ocaml
_unK has joined #ocaml
ikaros has joined #ocaml
mjsor has joined #ocaml
mjsor has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
alexyk has quit [Quit: alexyk]
robobo has quit [Read error: Connection reset by peer]
_unK has quit [Ping timeout: 260 seconds]
itewsh has joined #ocaml
itewsh has quit [Client Quit]
_unK has joined #ocaml
emmanuelux has quit [Quit: =>[]]
emmanuelux has joined #ocaml
travisbrady has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
<adrien>
I'm reading lines from a big file (4GB), 4 lines at a time, any advice on how to improve the performance? (it's currently taking 40% of the time)
<ygrek>
what function is hot?
<ygrek>
how much is wc faster?
<adrien>
time seconds seconds calls s/call s/call name