Big modules vs small modules in Erts

Inswitch Solutions - Erlang Evaluation <>
Sat Aug 21 19:24:29 CEST 2004

I have a 3000 lines FSM module spawned by more than 200 processes.
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?

I mean:
s1(Event, StateData) -> s2
s2(Event, StateData) ->
3000 lines


- module(fsm1)
s1(Event, StateData) ->
wait for fsm2:s2
200 lines
- module(fsm2)
s2(Event, StateData) ->
200 lines


Eduardo Figoli
INSwitch Solution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list