Why not simply call bbFTP via system()? (And maybe Expect for handling login/password, if needed.) Are you sure it's the fork/exec overhead that's the bottleneck here? — I would expect the latter to only matter when you're making a gazillion of separate calls each transferring a tiny file only.
Maybe you could take a look at the Perl script bbSCP, and reuse some of what's already implemented there...
| [reply] [d/l] |
fork is not the bottleneck at all, I was just explaining how it works. To make the change as simple as possible (i.e. the least changes to require the least testing) I was hoping for a module that allowed for similar, if not the same, OO syntax for interacting with the bbftp server as one uses in the regular ftp module. Basically I want to take advatage of bbftp's transfer time without rewriting much code. If that can't be done this upgrade will just have to wait till the next major release of the tool.
| [reply] |