<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3526.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have a 3000 lines FSM module spawned by more than
200 processes.</FONT></DIV>
<DIV><FONT face=Arial size=2>Apart from memory issues and talking about Erts
performance, is a big module implementation (with one state data
allocation) better than several smaller modules (with several state
data allocations) for the same FSM?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I mean:</FONT></DIV>
<DIV><FONT face=Arial size=2>-module(fsm1)</FONT></DIV>
<DIV><FONT face=Arial size=2>s1(Event, StateData) -> s2</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>s2(Event, StateData)
-></FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>3000 lines</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>vs.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>- module(fsm1)</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>s1(Event, StateData) -></FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>wait for fsm2:s2</FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV>200 lines</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>- module(fsm2)</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2>s2(Event, StateData)
-></FONT></DIV></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>200 lines</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Eduardo Figoli</FONT></DIV>
<DIV><FONT face=Arial size=2>INSwitch Solution</FONT></DIV>
<DIV> </DIV></BODY></HTML>