Does Firefox slow down after extensive use of all of your ESRI JSAPI applications or just a specific application?
In my experience as a JS Dev, its generally the application at fault, rather than the library.
The API itself wouldn't necessarily cause this issue unless it was used in a certain (incorrect?) way.