Changing deparse (and internal uses) to only deparse as many lines as
are needed solves this and seems to give a noticeable performance post
(5-10% or more) on quite a few packages.
On Wed, 27 Feb 2008, Prof Brian Ripley wrote:
> On Wed, 27 Feb 2008, Martin Maechler wrote:
>
>> Thank you Henrik
On Wed, Feb 27, 2008 at 5:50 AM, Henrik Bengtsson <[EMAIL PROTECTED]> wrote:
> On Wed, Feb 27, 2008 at 12:56 AM, Prof Brian Ripley
> <[EMAIL PROTECTED]> wrote:
> > On Wed, 27 Feb 2008, Martin Maechler wrote:
> >
> > > Thank you Henrik,
> > >
> > >> "HenrikB" == Henrik Bengtsson <[EMAIL PROTE
Yes Henrik, I've also noticed this when cutting and pasting code from here:
http://ace.acadiau.ca/math/ACMMaC/Rmpi/sample.html
Try the .Last function for example.
Best wishes
Richard.
Henrik Bengtsson wrote:
> On Wed, Feb 27, 2008 at 12:56 AM, Prof Brian Ripley
> <[EMAIL PROTECTED]> wrote:
>
On Wed, Feb 27, 2008 at 12:56 AM, Prof Brian Ripley
<[EMAIL PROTECTED]> wrote:
> On Wed, 27 Feb 2008, Martin Maechler wrote:
>
> > Thank you Henrik,
> >
> >> "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]>
> >> on Tue, 26 Feb 2008 22:03:24 -0800 writes:
> >
> > {with many superf
On Wed, 27 Feb 2008, Martin Maechler wrote:
> Thank you Henrik,
>
>> "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]>
>> on Tue, 26 Feb 2008 22:03:24 -0800 writes:
>
> {with many superfluous empty statements ( i.e., trailing ";" ):
Indeed!
>HenrikB> x <- rnorm(1e6);
>
>[
Thank you Henrik,
> "HenrikB" == Henrik Bengtsson <[EMAIL PROTECTED]>
> on Tue, 26 Feb 2008 22:03:24 -0800 writes:
{with many superfluous empty statements ( i.e., trailing ";" ):
HenrikB> x <- rnorm(1e6);
[]
HenrikB> y <- log2(x); # or log10(x)
Hen
x <- rnorm(1e6);
y <- log(x); # or logb(x) or log1p(x)
w <- warnings();
print(object.size(w));
## [1] 480
str(w);
$ NaNs produced: language log(x)
- attr(*, "dots")= list()
- attr(*, "class")= chr "warnings"
y <- log2(x); # or log10(x)
w <- warnings();
print(object.size(w));
## [1] 8000536
s