[erlang-questions] refactoring a very large record

Joel Reymont joelr1@REDACTED
Thu Oct 20 14:37:11 CEST 2011

I have a record with about 80 fields.

I'm in dialyzer hell because this record is in a header file and used all over the place.

I would like to make this record opaque and completely encapsulate it in a single file.

Should I export getters and setters for each field? 

Would these be inlined by the compiler?

Is ETS a suitable replacement for a record of this size?

	Thanks, Joel

- for hire: mac osx device driver ninja, kernel extensions and usb drivers
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont

More information about the erlang-questions mailing list