|
List Info
Thread: Eliminating threading
|
|
| Eliminating threading |

|
2006-12-29 07:39:26 |
I've just removed all threading from the ping sending code.
I expect
this to have a couple of effects:
1. A probable perceived slowdown in posting.
2. A possible improvement in memory usage. Threading
certainly causes
pain to rubygems, and I wouldn't be surprised if it's
causing pain
elsewhere too.
Also in this batch of changes, I've shifted feedback
classification to
Feedback#before_save instead of Feedback#after_save. I think
it was on
after_save but then we were seeing loads of unclassified
feedback.
--
Piers Cawley <pdcawley bofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-29 17:47:46 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Dec 29, 2006, at 8:39 , Piers Cawley wrote:
> I've just removed all threading from the ping sending
code. I expect
> this to have a couple of effects:
>
> 1. A probable perceived slowdown in posting.
> 2. A possible improvement in memory usage. Threading
certainly causes
> pain to rubygems, and I wouldn't be surprised if
it's causing pain
> elsewhere too.
I tried it and it seems to work now. At least it doesn't die
after a few
page loads. I'll report tomorrow again and tell you if the
process
survived a day.
Urban
- --
http://bettong.net -
Urban's Blog
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFlVTJggNuVCIrEyURAq+CAKCf0/N7NZf2v/aLSe1oll10NygA9gCf
drK1
gFTeaRiallh2sUdrya60B1o=
=hYxH
-----END PGP SIGNATURE-----
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-29 19:29:31 |
Thanks. I this was one of those "looked like a good
idea at the time"
patches that probably shouldn't have went in in the first
place.
I wish that dealing with background processing wasn't such a
pain with
Rails. Ugh.
Scott
On 12/28/06, Piers Cawley <pdcawley bofh.org.uk> wrote:
> I've just removed all threading from the ping sending
code. I expect
> this to have a couple of effects:
>
> 1. A probable perceived slowdown in posting.
> 2. A possible improvement in memory usage. Threading
certainly causes
> pain to rubygems, and I wouldn't be surprised if
it's causing pain
> elsewhere too.
>
> Also in this batch of changes, I've shifted feedback
classification to
> Feedback#before_save instead of Feedback#after_save. I
think it was on
> after_save but then we were seeing loads of
unclassified feedback.
>
> --
> Piers Cawley <pdcawley bofh.org.uk>
> http://www.bofh.org.uk/
> _______________________________________________
> Typo-list mailing list
> Typo-list rubyforge.org
> http:
//rubyforge.org/mailman/listinfo/typo-list
>
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-29 19:31:40 |
Urban Hafner <urban bettong.net> writes:
> On Dec 29, 2006, at 8:39 , Piers Cawley wrote:
>
>> I've just removed all threading from the ping
sending code. I expect
>> this to have a couple of effects:
>>
>> 1. A probable perceived slowdown in posting.
>> 2. A possible improvement in memory usage.
Threading certainly causes
>> pain to rubygems, and I wouldn't be surprised if
it's causing pain
>> elsewhere too.
>
> I tried it and it seems to work now. At least it
doesn't die after a few
> page loads. I'll report tomorrow again and tell you if
the process
> survived a day.
Cool.
--
Piers Cawley <pdcawley bofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-29 22:53:28 |
"Scott Laird" <scott sigkill.org> writes:
> Thanks. I this was one of those "looked like a
good idea at the time"
> patches that probably shouldn't have went in in the
first place.
>
> I wish that dealing with background processing wasn't
such a pain with
> Rails. Ugh.
I keep thinking of hacking in a 'post_response' plugin to
run the kind
of cleanup that can be done after a request, but I never
quite get
round to it.
--
Piers Cawley <pdcawley bofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-29 23:37:57 |
I really *like* threads for this sort of thing. Pity Ruby's
threads
are so weak, and double pity that Rails freaks out if you
even
*mention* the word "thread" around it.
Scott
On 12/29/06, Piers Cawley <pdcawley bofh.org.uk> wrote:
> "Scott Laird" <scott sigkill.org> writes:
>
> > Thanks. I this was one of those "looked like
a good idea at the time"
> > patches that probably shouldn't have went in in
the first place.
> >
> > I wish that dealing with background processing
wasn't such a pain with
> > Rails. Ugh.
>
> I keep thinking of hacking in a 'post_response' plugin
to run the kind
> of cleanup that can be done after a request, but I
never quite get
> round to it.
>
> --
> Piers Cawley <pdcawley bofh.org.uk>
> http://www.bofh.org.uk/
> _______________________________________________
> Typo-list mailing list
> Typo-list rubyforge.org
> http:
//rubyforge.org/mailman/listinfo/typo-list
>
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-30 01:26:59 |
"Scott Laird" <scott sigkill.org> writes:
> I really *like* threads for this sort of thing. Pity
Ruby's threads
> are so weak, and double pity that Rails freaks out if
you even
> *mention* the word "thread" around it.
Discovering that the gems system isn't threadsafe was a bit
of a
shock...
--
Piers Cawley <pdcawley bofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-30 11:38:53 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Dec 29, 2006, at 20:31 , Piers Cawley wrote:
>> I tried it and it seems to work now. At least it
doesn't die after
>> a few
>> page loads. I'll report tomorrow again and tell you
if the process
>> survived a day.
>
> Cool.
Well, it did survive! So it seems this patch fixed my
problem. Thanks!
Urban
- --
http://bettong.net -
Urban's Blog
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
iD8DBQFFlk/VggNuVCIrEyURAlkCAJ4lAydepBHJTWjQ9x70NY1b2pYLIQCc
DdGs
LjSI/g3nhmXYHWZPDfoUU2A=
=NW7l
-----END PGP SIGNATURE-----
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
| Eliminating threading |

|
2006-12-30 14:07:51 |
Urban Hafner <urban bettong.net> writes:
> On Dec 29, 2006, at 20:31 , Piers Cawley wrote:
>
>>> I tried it and it seems to work now. At least
it doesn't die after
>>> a few
>>> page loads. I'll report tomorrow again and tell
you if the process
>>> survived a day.
>>
>> Cool.
>
> Well, it did survive! So it seems this patch fixed my
> problem. Thanks!
Yay!
--
Piers Cawley <pdcawley bofh.org.uk>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-list rubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
|
|
[1-9]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|