[erlang-questions] Fast directory walker

Frank Muller <>
Sat Dec 10 12:32:51 CET 2016


Max,

Very interesting.

What's the benefit of starting this prim_file server?
Does it make avoid the singleton process "file_server"?

I'll bench this hack with Sergeij's version and post the result here.

/Frank

Le sam. 10 déc. 2016 à 12:02, Max Lapshin <> a écrit :

> All these discussions about faster or slower are not considering very
> important thing:  all these operations are going through singleton process
> file_server.  All this speed will become nothing on single core.
>
>
> This hackish way:
>
> {ok, H} = prim_file:start(),
> {ok, Entries} = prim_file:list_dir(H, Path)
>
>
> works on multicore
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161210/39358005/attachment.html>


More information about the erlang-questions mailing list