powered by Jive Software

Simple client - Tinder or Smack?


#1

Hi,

I need to build a simple client that support socket connection to a server, roster management, presence and IM.

The client should be small and memory efficient.

Is it better to use Tinder or Smack for this purpose?

Thanks


#2

Hi,

This depends a bit on how much time you’re willing to invest, and what amount of efficiency you would like to reach.

Tinder is a small library, but this does not necesarily translate into a super low memory footprint. There is a bit of caching going on in the JID class, for example, that is more tailored towards server-sided setups. You should be able to weed this out pretty fast if you run through the code, but doing this would require you to modify Tinder itself. On top of the caching, Tinder enforces the full set of requirements and restrictions defined by the XMPP spec on JIDs (although you can switch this off). This is a pretty CPU-intensive task.

Smack on the other hand offers a lot of client-specific code that Tinder does not have. You’d have to write this yourself if you choose to use Tinder.


#3

Sounds like I need. smack.

Do you know when will be the next release of smack?

Thanks


#4

No, I haven’t been actively invovled in the Smack development process for a while. I’m not sure if there’s anything going on in the moment. Best you’d check with theSmack Dev community directly though.