Re: [PATCH 4 of 5] mpatch: remove dependency on Python.h in mpatch.c

2016-08-10 Thread Maciej Fijalkowski
On Fri, Aug 5, 2016 at 3:54 PM, Yuya Nishihara <y...@tcha.org> wrote: > On Mon, 25 Jul 2016 15:10:58 +0200, Maciej Fijalkowski wrote: >> # HG changeset patch >> # User Maciej Fijalkowski <fij...@gmail.com> >> # Date 1469201285 -7200 >> # Fri

Re: [PATCH] performance: disable workaround for an old bug of Python

2016-08-12 Thread Maciej Fijalkowski
Well, seems the comment is out of date. I know the issue - the GC got triggered every X objects in 2.6, which caused O(n^2) performance when allocating lots of objects. These days (since 2.7) it adapts the threshold, which means it always amortizes to O(n). Either way, I don't care if we disable

[PATCH] osutil: fix the declaration to work on different sizes of off_t

2016-09-08 Thread Maciej Fijalkowski
# HG changeset patch # User fijal # Date 1473323878 -7200 # Thu Sep 08 10:37:58 2016 +0200 # Node ID 8db87163c95d79da03644e3850551f3bfa802262 # Parent e20945831e4f9362d2e113bafe527e2a0554f4b4 osutil: fix the declaration to work on different sizes of off_t diff --git a/setup_osutil_cffi.py

Re: [PATCH] mpatch: add missing file

2016-09-08 Thread Maciej Fijalkowski
ups, it seems this has been committed (?) On Thu, Sep 8, 2016 at 10:04 AM, Maciej Fijalkowski <fij...@gmail.com> wrote: > # HG changeset patch > # User fijal > # Date 1473321829 -7200 > # Thu Sep 08 10:03:49 2016 +0200 > # Node ID e812104013b1281b24dff50dd90289

[PATCH] mpatch: add missing file

2016-09-08 Thread Maciej Fijalkowski
# HG changeset patch # User fijal # Date 1473321829 -7200 # Thu Sep 08 10:03:49 2016 +0200 # Node ID e812104013b1281b24dff50dd902897d24b0e29f # Parent 64e432c2740087b7c042346f55af9512ead0f849 mpatch: add missing file diff --git a/setup_mpatch_cffi.py b/setup_mpatch_cffi.py new file mode

Preview of my work

2016-10-09 Thread Maciej Fijalkowski
Preview of my work on speeding up mercurial on pypy. The more changing benchmarks (commit, rebase etc.) are not included since they need more plumbing (working on it). The benchmarks are run multiple times, to simulate the effects of chg. This *also* populates caches etc, so I'm excluding initial

Re: [PATCH] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-09-17 Thread Maciej Fijalkowski
https://paste.pound-python.org/show/JB0RSPFycVzWS8X6C7hc/ On Sat, Sep 17, 2016 at 12:25 PM, Pierre-Yves David <pierre-yves.da...@ens-lyon.org> wrote: > > > On 09/17/2016 11:17 AM, Maciej Fijalkowski wrote: >> >> Hi >> >> When I'm trying to do that, I get tha

Re: [PATCH] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-09-17 Thread Maciej Fijalkowski
I have fixed the problem with the test that you listed. I'm still completely unable to finish the test run - with -j it randomly hangs and does nothing with no extra output On Sat, Sep 17, 2016 at 1:47 PM, Maciej Fijalkowski <fij...@gmail.com> wrote: > managed to pull that. How do I in

[PATCH] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-09-17 Thread Maciej Fijalkowski
# HG changeset patch # User Maciej Fijalkowski <fij...@gmail.com> # Date 1473680234 -7200 # Mon Sep 12 13:37:14 2016 +0200 # Node ID 7551f1e60b2155462d89a9571eec065e9f67debc # Parent df05c43bd1e64f1620d0b2e502f4603c1e5a8341 lazymanifest: write a more efficient, pypy friendly v

Re: [PATCH v2] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-09-17 Thread Maciej Fijalkowski
This should fix the issues presented. There is one problem which is that the hash in test-rebase-detach changes. The way I see it is just an RNG phase-shift, but it might be a real bug. Some actual input will be appreciated. On Sat, Sep 17, 2016 at 8:22 PM, Maciej Fijalkowski <fij...@gmail.

[PATCH v3] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-09-28 Thread Maciej Fijalkowski
# HG changeset patch # User Maciej Fijalkowski <fij...@gmail.com> # Date 1473680234 -7200 # Mon Sep 12 13:37:14 2016 +0200 # Node ID 2c852d298fbf87c5bc0ad7b65563212169915ab3 # Parent df05c43bd1e64f1620d0b2e502f4603c1e5a8341 lazymanifest: write a more efficient, pypy friendly v

Re: [PATCH v2] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-09-25 Thread Maciej Fijalkowski
17, 2016 at 08:23:36PM +0200, Maciej Fijalkowski wrote: >> This should fix the issues presented. >> >> There is one problem which is that the hash in test-rebase-detach >> changes. The way I see it is just an RNG phase-shift, but it might be >> a real bug. Some act

[PATCH v4] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-10-01 Thread Maciej Fijalkowski
# HG changeset patch # User Maciej Fijalkowski <fij...@gmail.com> # Date 1473680234 -7200 # Mon Sep 12 13:37:14 2016 +0200 # Node ID c770219dc4c253d7cd82519ce3c74438bb2829d3 # Parent df05c43bd1e64f1620d0b2e502f4603c1e5a8341 lazymanifest: write a more efficient, pypy friendly v

Re: [PATCH v3] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

2016-10-01 Thread Maciej Fijalkowski
Fixed, it's error reporting and making sure we truncate the 22 length hash On Fri, Sep 30, 2016 at 12:06 AM, Augie Fackler <r...@durin42.com> wrote: > On Wed, Sep 28, 2016 at 01:47:32PM +0200, Maciej Fijalkowski wrote: >> # HG changeset patch >> # User Maciej Fijalkow

Re: [PATCH] dirs: document Py_SIZE weirdness

2016-10-14 Thread Maciej Fijalkowski
FYI This is the violation of C API, explicit assignment would be probably better (at least it's CLEAR that you're doing something dodgy) On Thu, Oct 13, 2016 at 9:43 PM, Gregory Szorc wrote: > # HG changeset patch > # User Gregory Szorc > # Date

[PATCH] osutil: implement listdir for linux

2016-10-14 Thread Maciej Fijalkowski
# HG changeset patch # User Maciej Fijalkowski <fij...@gmail.com> # Date 1476428549 -7200 # Fri Oct 14 09:02:29 2016 +0200 # Node ID 4e80a66124279e235dec7ae8f58c0a14b0b137bf # Parent c770219dc4c253d7cd82519ce3c74438bb2829d3 osutil: implement listdir for linux diff --git a/mercuria

Re: [PATCH] osutil: implement listdir for linux

2016-10-17 Thread Maciej Fijalkowski
a while, if you ask me On Sun, Oct 16, 2016 at 6:55 PM, Gregory Szorc <gregory.sz...@gmail.com> wrote: > On Fri, Oct 14, 2016 at 12:02 AM, Maciej Fijalkowski <fij...@gmail.com> > wrote: >> >> # HG changeset patch >> # User Maciej Fijalkowski <fij...@gmail.com>