Account Options

  1. Sign in
Google Groups Home
« Groups Home
Compile only changed?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David King  
View profile  
 More options Nov 15 2007, 9:28 pm
From: David King <dk...@ketralnis.com>
Date: Thu, 15 Nov 2007 18:28:27 -0800
Local: Thurs, Nov 15 2007 9:28 pm
Subject: Compile only changed?
Compiling with erlyweb:compile(Appdir,...) takes quite some time, and  
compiling with {auto_compile,true} makes every request take a while,  
so is there some way to get to the "compile all of the changed files"  
functionality directly?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yariv Sadan  
View profile  
 More options Nov 16 2007, 1:29 am
From: "Yariv Sadan" <yarivsa...@gmail.com>
Date: Thu, 15 Nov 2007 22:29:26 -0800
Local: Fri, Nov 16 2007 1:29 am
Subject: Re: [erlyweb-list] Compile only changed?
You can pass the {last_compile_time, Time} option to
erlyweb:compile(), and it will only compile the files that have
changed since that time (for convenience, erlyweb:compile() returns
the Time value after each compilation).

Is {auto_compile, true} slow for you? I haven't noticed its impact.

Yariv

On Nov 15, 2007 6:28 PM, David King <dk...@ketralnis.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roberto Saccon  
View profile  
 More options Nov 16 2007, 2:27 am
From: Roberto Saccon <rsac...@gmail.com>
Date: Thu, 15 Nov 2007 23:27:27 -0800 (PST)
Local: Fri, Nov 16 2007 2:27 am
Subject: Re: Compile only changed?
If I remember properly, I once had a such a situation, where it can
get slow, if you have a lot of static files served (or better: passed
through) by Erlyweb, then you also have a lot of requests per page,
which are going to be checked whether it is something to recompile,
end erlyweb is printing for each file a warning to the interactive
shell, which is also slow (but can be suppressed I think).

On Nov 16, 4:29 am, "Yariv Sadan" <yarivsa...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David King  
View profile  
 More options Nov 16 2007, 12:12 pm
From: David King <dk...@ketralnis.com>
Date: Fri, 16 Nov 2007 09:12:24 -0800
Local: Fri, Nov 16 2007 12:12 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?

> You can pass the {last_compile_time, Time} option to
> erlyweb:compile(), and it will only compile the files that have
> changed since that time (for convenience, erlyweb:compile() returns
> the Time value after each compilation).

Since obviously {auto_compile,true} already retrieves its last  
compile time from somewhere, can we get a {last_compile_time,auto} or  
something in a future release?

> Is {auto_compile, true} slow for you? I haven't noticed its impact.

Yes, it at least triples the access time for pages when no files  
require re-compiling (of course the impact is more when there are  
files that do need compiling, but that's expected). Roberto mentioned  
that this could be due to lots of static files, but that's not the  
case here; I only have one .js and one .css being served in addition  
to the rendered pages.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yariv Sadan  
View profile  
 More options Nov 17 2007, 7:52 pm
From: "Yariv Sadan" <yarivsa...@gmail.com>
Date: Sat, 17 Nov 2007 16:52:19 -0800
Local: Sat, Nov 17 2007 7:52 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?
On Nov 16, 2007 9:12 AM, David King <dk...@ketralnis.com> wrote:

> > You can pass the {last_compile_time, Time} option to
> > erlyweb:compile(), and it will only compile the files that have
> > changed since that time (for convenience, erlyweb:compile() returns
> > the Time value after each compilation).

> Since obviously {auto_compile,true} already retrieves its last
> compile time from somewhere, can we get a {last_compile_time,auto} or
> something in a future release?

That's a good suggestion. I'll do it.

Yariv


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David King  
View profile  
 More options Nov 17 2007, 8:34 pm
From: David King <dk...@ketralnis.com>
Date: Sat, 17 Nov 2007 17:34:10 -0800
Local: Sat, Nov 17 2007 8:34 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?

> On Nov 16, 2007 9:12 AM, David King <dk...@ketralnis.com> wrote:
>>> You can pass the {last_compile_time, Time} option to
>>> erlyweb:compile(), and it will only compile the files that have
>>> changed since that time (for convenience, erlyweb:compile() returns
>>> the Time value after each compilation).
>> Since obviously {auto_compile,true} already retrieves its last
>> compile time from somewhere, can we get a {last_compile_time,auto} or
>> something in a future release?
> That's a good suggestion. I'll do it.

Thanks. Do you have a trac or bugzilla or something somewhere? Can I  
get an account on it?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yariv Sadan  
View profile  
 More options Nov 17 2007, 8:48 pm
From: "Yariv Sadan" <yarivsa...@gmail.com>
Date: Sat, 17 Nov 2007 17:48:10 -0800
Local: Sat, Nov 17 2007 8:48 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?

> Thanks. Do you have a trac or bugzilla or something somewhere? Can I
> get an account on it?

The Google Code project has a bug tracker, but I don't use it. Maybe
it's a good time to start :)

Yariv


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David King  
View profile  
 More options Nov 17 2007, 9:16 pm
From: David King <dk...@ketralnis.com>
Date: Sat, 17 Nov 2007 18:16:02 -0800
Local: Sat, Nov 17 2007 9:16 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?

>> Thanks. Do you have a trac or bugzilla or something somewhere? Can I
>> get an account on it?
> The Google Code project has a bug tracker, but I don't use it. Maybe
> it's a good time to start :)

Agreed. I'm willing to work on the stuff I'm asking for, but I don't  
want to duplicate the work where you've already started

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yariv Sadan  
View profile  
 More options Nov 18 2007, 5:38 pm
From: "Yariv Sadan" <yarivsa...@gmail.com>
Date: Sun, 18 Nov 2007 14:38:13 -0800
Local: Sun, Nov 18 2007 5:38 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?
I haven't started yet, so you can go ahead. Just let me know exactly
what it is you're working on so I don't work on the same stuff.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yariv Sadan  
View profile  
 More options Nov 18 2007, 11:44 pm
From: "Yariv Sadan" <yarivsa...@gmail.com>
Date: Sun, 18 Nov 2007 20:44:02 -0800
Local: Sun, Nov 18 2007 11:44 pm
Subject: Re: [erlyweb-list] Re: Compile only changed?

> > Is {auto_compile, true} slow for you? I haven't noticed its impact.

> Yes, it at least triples the access time for pages when no files
> require re-compiling (of course the impact is more when there are
> files that do need compiling, but that's expected). Roberto mentioned
> that this could be due to lots of static files, but that's not the
> case here; I only have one .js and one .css being served in addition
> to the rendered pages.

Wow... I guess I made a n00b mistake on Vimagi by setting
{auto_compile, true}. I just removed it and the site feels much
snappier -- almost as fast as BeerRiot, in fact :) Thanks for the tip.

Yariv


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David King  
View profile  
 More options Nov 19 2007, 11:37 am
From: David King <dk...@ketralnis.com>
Date: Mon, 19 Nov 2007 08:37:15 -0800
Local: Mon, Nov 19 2007 11:37 am
Subject: Re: [erlyweb-list] Re: Compile only changed?

> I haven't started yet, so you can go ahead. Just let me know exactly
> what it is you're working on so I don't work on the same stuff.

I'll start on the {last_compile,auto}


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »