<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 25 Apr 2012, at 23:40, Jon Watte wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Module look-up is a hash table look-up, so assuming correct re-hashing implementation, it's amortized O(1).<div><br></div><div>If you're really, really worried, then it would be super simple to just write the two versions, and benchmark them in isolation, and see if there's a real difference. My money is on a module-per-function being just fine.</div></span></blockquote><br></div><div>…but, as I mentioned before, there is currently an issue with module loading being potentially disruptive in the SMP VM.</div><div><br></div><div>See e.g.</div><div><br></div><div><a href="http://article.gmane.org/gmane.comp.lang.erlang.general/56974">http://article.gmane.org/gmane.comp.lang.erlang.general/56974</a></div><div><br></div><div>BR,</div><div>Ulf W<span class="Apple-tab-span" style="white-space:pre"> </span></div><br><div apple-content-edited="true">
<div><div>Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div><a href="http://feuerlabs.com">http://feuerlabs.com</a></div></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></body></html>