From fbf7bf848a8c5d352bdbff0b98ea2045c095af39 Mon Sep 17 00:00:00 2001 From: esjeong Date: Tue, 20 Aug 2019 15:41:55 +0900 Subject: [PATCH 1/3] Change document code prun in a row --- doc/source/user_guide/enhancingperf.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index b77bfb9778837..b1f17a714c0b8 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -243,9 +243,7 @@ We've gotten another big improvement. Let's check again where the time is spent: .. ipython:: python - %prun -l 4 apply_integrate_f(df['a'].to_numpy(), - df['b'].to_numpy(), - df['N'].to_numpy()) + %prun -l 4 apply_integrate_f(df['a'].to_numpy(), df['b'].to_numpy(), df['N'].to_numpy()) As one might expect, the majority of the time is now spent in ``apply_integrate_f``, so if we wanted to make anymore efficiencies we must continue to concentrate our From 23322e2c78eaff1f44e70f074b3775915ecb28ee Mon Sep 17 00:00:00 2001 From: Eunseop Date: Tue, 20 Aug 2019 19:49:14 +0900 Subject: [PATCH 2/3] Line character should < 80 --- doc/source/user_guide/enhancingperf.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index b1f17a714c0b8..98af1bdeabe51 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -243,7 +243,9 @@ We've gotten another big improvement. Let's check again where the time is spent: .. ipython:: python - %prun -l 4 apply_integrate_f(df['a'].to_numpy(), df['b'].to_numpy(), df['N'].to_numpy()) + %%prun -l 4 apply_integrate_f(df['a'].to_numpy(), + df['b'].to_numpy(), + df['N'].to_numpy()) As one might expect, the majority of the time is now spent in ``apply_integrate_f``, so if we wanted to make anymore efficiencies we must continue to concentrate our From 160cc7491756985a033cde23bf26e32a380fb98f Mon Sep 17 00:00:00 2001 From: Eunseop Date: Tue, 20 Aug 2019 20:37:09 +0900 Subject: [PATCH 3/3] Remove tailing whitespace --- doc/source/user_guide/enhancingperf.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 98af1bdeabe51..a4eefadd54d8c 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -243,8 +243,8 @@ We've gotten another big improvement. Let's check again where the time is spent: .. ipython:: python - %%prun -l 4 apply_integrate_f(df['a'].to_numpy(), - df['b'].to_numpy(), + %%prun -l 4 apply_integrate_f(df['a'].to_numpy(), + df['b'].to_numpy(), df['N'].to_numpy()) As one might expect, the majority of the time is now spent in ``apply_integrate_f``,