summaryrefslogtreecommitdiffstats
path: root/_build/static/archives/extend/attachments/20130919/0a4bcb6c/attachment.html
blob: 74916ad358bbdb96830ff59d63a276dd1ed48b79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<tt>
&lt;div&nbsp;dir=&quot;ltr&quot;&gt;my&nbsp;http&nbsp;handler&nbsp;receives&nbsp;messages&nbsp;carrying&nbsp;json&nbsp;parts&nbsp;obtained&nbsp;from&nbsp;a&nbsp;twitter&nbsp;stream&nbsp;by&nbsp;a&nbsp;separate&nbsp;process.&nbsp;the&nbsp;twitter&nbsp;stream&nbsp;is&nbsp;the&nbsp;stream&nbsp;of&nbsp;all&nbsp;public&nbsp;tweets,&nbsp;(they&nbsp;call&nbsp;it&nbsp;&quot;firehose&quot;)&nbsp;so&nbsp;there&nbsp;are&nbsp;a&nbsp;lot.&lt;/div&gt;<br>
&lt;div&nbsp;class=&quot;gmail_extra&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div&nbsp;class=&quot;gmail_quote&quot;&gt;2013/9/19&nbsp;Loïc&nbsp;Hoguin&nbsp;&lt;span&nbsp;dir=&quot;ltr&quot;&gt;&lt;&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&nbsp;target=&quot;_blank&quot;&gt;[email protected]&lt;/a&gt;&gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote&nbsp;class=&quot;gmail_quote&quot;&nbsp;style=&quot;margin:0&nbsp;0&nbsp;0&nbsp;.8ex;border-left:1px&nbsp;#ccc&nbsp;solid;padding-left:1ex&quot;&gt;<br>
How&nbsp;much&nbsp;is&nbsp;a&nbsp;lot&nbsp;of&nbsp;messages?&lt;br&gt;<br>
&lt;br&gt;<br>
Hibernating&nbsp;is&nbsp;a&nbsp;bit&nbsp;more&nbsp;expensive&nbsp;on&nbsp;the&nbsp;CPU&nbsp;but&nbsp;better&nbsp;for&nbsp;saving&nbsp;memory.&nbsp;It&#39;s&nbsp;generally&nbsp;fine&nbsp;to&nbsp;use&nbsp;except&nbsp;when&nbsp;you&nbsp;have&nbsp;a&nbsp;really&nbsp;busy&nbsp;system.&nbsp;Do&nbsp;note&nbsp;that&nbsp;it&nbsp;also&nbsp;means&nbsp;your&nbsp;responses&nbsp;will&nbsp;be&nbsp;slightly&nbsp;slower&nbsp;(though&nbsp;that&nbsp;is&nbsp;generally&nbsp;not&nbsp;noticeable).&lt;div&gt;<br>
&lt;div&nbsp;class=&quot;h5&quot;&gt;&lt;br&gt;<br>
&lt;br&gt;<br>
On&nbsp;09/19/2013&nbsp;06:30&nbsp;AM,&nbsp;akonsu&nbsp;wrote:&lt;br&gt;<br>
&lt;/div&gt;&lt;/div&gt;&lt;blockquote&nbsp;class=&quot;gmail_quote&quot;&nbsp;style=&quot;margin:0&nbsp;0&nbsp;0&nbsp;.8ex;border-left:1px&nbsp;#ccc&nbsp;solid;padding-left:1ex&quot;&gt;&lt;div&gt;&lt;div&nbsp;class=&quot;h5&quot;&gt;<br>
Hello,&lt;br&gt;<br>
&lt;br&gt;<br>
from&nbsp;the&nbsp;documentation:&lt;br&gt;<br>
&lt;br&gt;<br>
info(Info,&nbsp;Req,&nbsp;State)&nbsp;-&gt;&nbsp;{ok,&nbsp;Req,&nbsp;State}&nbsp;|&nbsp;{loop,&nbsp;Req,&nbsp;State}|&nbsp;{loop,&lt;br&gt;<br>
Req,&nbsp;State,&nbsp;hibernate}&lt;br&gt;<br>
&lt;br&gt;<br>
&lt;br&gt;<br>
in&nbsp;case&nbsp;my&nbsp;handler&nbsp;receives&nbsp;a&nbsp;lot&nbsp;of&nbsp;messages,&nbsp;and&nbsp;they&nbsp;come&nbsp;very&nbsp;often,&lt;br&gt;<br>
does&nbsp;a&nbsp;response&nbsp;of&nbsp;the&nbsp;latter&nbsp;form&nbsp;{loop,&nbsp;Req,&nbsp;State,&nbsp;hibernate}&nbsp;save&lt;br&gt;<br>
anything?&nbsp;Can&nbsp;hibernating&nbsp;in&nbsp;this&nbsp;case&nbsp;actually&nbsp;hinder&nbsp;performance?&lt;br&gt;<br>
&lt;br&gt;<br>
thanks&lt;br&gt;<br>
Konstantin&lt;br&gt;<br>
&lt;br&gt;<br>
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;<br>
______________________________&lt;u&gt;&lt;/u&gt;_________________&lt;br&gt;<br>
Extend&nbsp;mailing&nbsp;list&lt;br&gt;<br>
&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&nbsp;target=&quot;_blank&quot;&gt;[email protected]&lt;/a&gt;&lt;br&gt;<br>
&lt;a&nbsp;href=&quot;http://lists.ninenines.eu:81/listinfo/extend&quot;&nbsp;target=&quot;_blank&quot;&gt;http://lists.ninenines.eu:81/&lt;u&gt;&lt;/u&gt;listinfo/extend&lt;/a&gt;&lt;br&gt;<br>
&lt;br&gt;&lt;span&nbsp;class=&quot;HOEnZb&quot;&gt;&lt;font&nbsp;color=&quot;#888888&quot;&gt;<br>
&lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span&nbsp;class=&quot;HOEnZb&quot;&gt;&lt;font&nbsp;color=&quot;#888888&quot;&gt;<br>
&lt;br&gt;<br>
&lt;br&gt;<br>
--&nbsp;&lt;br&gt;<br>
Loďc&nbsp;Hoguin&lt;br&gt;<br>
Erlang&nbsp;Cowboy&lt;br&gt;<br>
Nine&nbsp;Nines&lt;br&gt;<br>
&lt;a&nbsp;href=&quot;http://ninenines.eu&quot;&nbsp;target=&quot;_blank&quot;&gt;http://ninenines.eu&lt;/a&gt;&lt;br&gt;<br>
&lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;<br>

</tt>