Arvid Norberg

Results 1037 comments of Arvid Norberg

the calculation of the constant has to be done at compile time, as a constrexpr value. As I'm sure you can see, that *is* a constant expression. However, it seems...

are you using a 64 bit build of libtorrent? The 64 bit build uses memory mapped files and multi-threaded disk I/O, which is expected to provide better performance compared to...

I see, you're building the binding in 64 bit mode, but not the main library. However, on linux I believe 64 bit builds is the default anyway, so that probably...

Do you know whether you're CPU-, network- or Disk I/O bound?

the main (disk related) change is the use of memory mapped files for disk I/O. But since not all systems support memory mapped files, there's a simple, single-threaded `fopen()`-based fallback...

> I'm also experiencing 3x slower download speeds with libtorrent 2.0.5 compared to 1.2.x (with qbt frontend on Arch Linux). "3x slower" means 1/3 the rate, right? > I have...

@sledgehammer999 ^^ it sounds like a smaller default `file_pool_size` makes sense

> I set it to 10 because I found that more stable (less sudden drops in throughput). Is there a consequence of setting it that low? The file pool is...

> How do you plan to use MADV_COLD? My idea (which I haven't had time to test yet) is to keep a ring-buffer of the most recently *completed* piece indices....

please give this patch a try: https://github.com/arvidn/libtorrent/pull/6703