[erlang-questions] Large Flat file operations - optimization.

Angel J. Alvarez Miguel <>
Mon Jun 18 10:24:26 CEST 2012


Hello

Just saw this, and it is also perfect for my needs

I need to load a potentially huge hessian data file and serve arbitrary number 
of lines  to many processes in a molecular simulator.

now im reading entire file in memory as testing doesnt involve large molecules 
but it is getting bigger day by day.

I was thinking on read data on start and store it in a dets but this seems 
better.

thanks


/Angel

On Martes, 12 de Junio de 2012 09:19:43 Max Lapshin escribió:
> Read, 10 KBytes, split them with binary:split and parse 10 lines.
> 
> Remember their byte size and calculate offset of next 10 lines.
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list