<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/16475" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-12-31T06:32:04-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/16475</id>

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-12-31T06:32:04-04:00</updated>

		<published>2008-12-31T06:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86613#p86613</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86613#p86613"/>
		<title type="html"><![CDATA[[bind] efficiency, multiple binds or * pubm/msgm?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86613#p86613"><![CDATA[
Actually, all eggdrop does is iterate through a linked list of structs. The speed of this cannot be matched by any construction in tcl involving any kind of loops.<br><br>As for the memory consumption, the footprint of the structs would not be considderably larger than the footprint of the proc that would do the "msgm/pubm version".<br><br>Personally, the only "issue" I could possibly see with using multiple msg/pub bindings, is that they do not stack, whereas msgm/pubm does. Unless you think seeing 50-100 extra lines when using the .binds command is an issue <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Dec 31, 2008 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2008-12-29T14:24:17-04:00</updated>

		<published>2008-12-29T14:24:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86584#p86584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86584#p86584"/>
		<title type="html"><![CDATA[[bind] efficiency, multiple binds or * pubm/msgm?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86584#p86584"><![CDATA[
Well, 50 with 2 command chars (most people will use 1).  Let's just say anyway that your eggdrop had 100 binds active.<br><br>If eggdrop is doing it, I picture eggdrop running a big foreach {} kind of thing against all the binds it has stored.  If you start using pubm and binding to *, then you start having nested foreach {}'s, while eggdrop loops through its bind list, and then a foreach in your script to check the binds, and then back into the eggdrop loop, etc.  I can't help but think it would be most optimized by having eggdrop do as much of the work as possible.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Mon Dec 29, 2008 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-28T10:36:00-04:00</updated>

		<published>2008-12-28T10:36:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86554#p86554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86554#p86554"/>
		<title type="html"><![CDATA[[bind] efficiency, multiple binds or * pubm/msgm?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86554#p86554"><![CDATA[
so we're talking 50 to 100 binds? how much memory does that take up? not more than 2 or 3KB if I'm not mistaken so that's not at all to be considered as a load.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 28, 2008 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2008-12-27T00:36:15-04:00</updated>

		<published>2008-12-27T00:36:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86540#p86540</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86540#p86540"/>
		<title type="html"><![CDATA[[bind] efficiency, multiple binds or * pubm/msgm?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86540#p86540"><![CDATA[
That is how I'm looking at it too.<br><br>Basically the main example would be my horoscope script, and in 3.0 you can set multiple commands chars, and with the option to bind signs (sorry not bragging here &gt;_&gt;), this adds up to 50ish binds or so (with 2 commands chars).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Sat Dec 27, 2008 12:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-12-26T17:02:29-04:00</updated>

		<published>2008-12-26T17:02:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86531#p86531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86531#p86531"/>
		<title type="html"><![CDATA[[bind] efficiency, multiple binds or * pubm/msgm?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86531#p86531"><![CDATA[
Interesting subject. Lets try to analyze this theoretically (this is only my assumption and is not necessarily true); When using a pub bind, Eggdrop does actually do the matching but I suppose it's faster than matching using Tcl in a pubm procedure. However, a huge [binds] list means more memory usage but that shouldn't be an issue if we're just talking about what? 50 binds maximum? so, in my opinion, even in a large channel with much traffic... using pub would be better in terms of performance than pubm... but that should be put for testing of course.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Dec 26, 2008 5:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2008-12-26T11:24:59-04:00</updated>

		<published>2008-12-26T11:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86529#p86529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86529#p86529"/>
		<title type="html"><![CDATA[[bind] efficiency, multiple binds or * pubm/msgm?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86529#p86529"><![CDATA[
Hello all,<br><br>A bit of a debate (you make life difficult mezzanine!  But I can't help but &lt;3 you) has raised over how I do the binds in my horoscope script, using a mass [foreach] to bind all the signs to pub and msg binds.  This, obviously, creates a very large [binds] list.<br><br>The alternative is using a * pubm/msgm and checking each line of text against every bind (I foresee another foreach and regexp/string matching), on every single line of text that is said.  This is basically what eggdrop does anyway, no?  Checking each line against it's binds list.<br><br>So I'm wondering what do you think would yield better performance, using individual binds and letting eggdrop do the work, or using pubm and checking the binds on the script level?  Consider large/small channels etc, or bots on many channels.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Fri Dec 26, 2008 11:24 am</p><hr />
]]></content>
	</entry>
	</feed>
