Prefer a fold rather than a map when newing pieces. This avoids a build and kill...
commit5e99de68f4b8dea83680cce50c5f1d8cde93c38e
authorJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Wed, 16 Jul 2008 23:56:25 +0000 (17 01:56 +0200)
committerJesper Louis Andersen <jesper.louis.andersen@gmail.com>
Wed, 16 Jul 2008 23:56:25 +0000 (17 01:56 +0200)
tree6eda70a43364d5b9b301f9ca8611b5697bddbbf2
parent43c93a34690b20b80633fd9d77d04705c20ee38a
Prefer a fold rather than a map when newing pieces. This avoids a build and kill of a 1k+ element list in most cases.
lib/etorrent-1.0/src/etorrent_piece.erl