Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  Compile only changed?

ketralnis
Posted: Fri Nov 16, 2007 2:29 am Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address
rsaccon
Posted: Fri Nov 16, 2007 7:39 am Reply with quote
User Joined: 09 Aug 2006 Posts: 144
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 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:
>
>
>
> > 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Fri Nov 16, 2007 7:42 am Reply with quote
Guest
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 <dking@ketralnis.com> wrote:
>
> 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
ketralnis
Posted: Fri Nov 16, 2007 5:13 pm Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
> 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.




>
> Yariv
>
> On Nov 15, 2007 6:28 PM, David King <dking@ketralnis.com> wrote:
>>
>> 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address
Guest
Posted: Sun Nov 18, 2007 1:49 am Reply with quote
Guest
>
> 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 Smile

Yariv

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
Guest
Posted: Sun Nov 18, 2007 2:53 am Reply with quote
Guest
On Nov 16, 2007 9:12 AM, David King <dking@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

>
> > 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.
>
>
>
>
>
> >
> > Yariv
> >
> > On Nov 15, 2007 6:28 PM, David King <dking@ketralnis.com> wrote:
> >>
> >> 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
ketralnis
Posted: Sun Nov 18, 2007 2:29 pm Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
>> 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 Smile

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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address
ketralnis
Posted: Sun Nov 18, 2007 6:36 pm Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
> On Nov 16, 2007 9:12 AM, David King <dking@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?



>>> 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.
>>
>>
>>
>>
>>
>>>
>>> Yariv
>>>
>>> On Nov 15, 2007 6:28 PM, David King <dking@ketralnis.com> wrote:
>>>>
>>>> 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address
Guest
Posted: Mon Nov 19, 2007 11:53 am Reply with quote
Guest
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.

>
> 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
ketralnis
Posted: Mon Nov 19, 2007 4:38 pm Reply with quote
User Joined: 20 Jul 2007 Posts: 151 Location: San Francisco, CA
> 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}

>
>>
>> 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 received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist
View user's profile Send private message AIM Address
Guest
Posted: Mon Nov 19, 2007 10:30 pm Reply with quote
Guest
> > 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 Smile Thanks for the tip.

Yariv

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum