adriengibrat / torrent-rw

php5 class to read and write .torrent files
GNU General Public License v3.0
324 stars 104 forks source link

Fix decode torrent data from string #20

Closed ieee8023 closed 8 years ago

ieee8023 commented 10 years ago

"is_dir and is_file checks now fail silently in order to decode string instead of file"

I needed this to decode a torrent file without writing it to disk.

ieee8023 commented 10 years ago

So the torrent files that I am dealing with are like this one with 12744 files:

http://academictorrents.com/details/e3e68948b2e01b01a415740cb6fa6fe918c971ac

Another issue I was having with your library was that it was taking a very long time to decode and encode these large files.

rsendres commented 10 years ago

"So the torrent files that I am dealing with are like this one with 12744 files:

http://academictorrents.com/details/e3e68948b2e01b01a415740cb6fa6fe918c971ac

Another issue I was having with your library was that it was taking a very long time to decode and encode these large files."

Same problema here. happens with a. torrent that has many files

adriengibrat commented 8 years ago

I'm confident my class is not optimized, it was at first a week end hack ;) Nice to know https://github.com/WhatCD/Gazelle/ is a good library to handle torrent, i'm closing the PR