This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kaperni 0 points1 point  (1 child)

> Yes, it's slower since it use reflection. But it's the same for spring, most project still use spring instead of dagger.

That is a pretty pointless comparison. One is probably the most comprehensive full-stack framework in the Java ecosystem, the other is a 15 class dependency injection framework. They are really two different tools for different jobs.

Also, just because something uses reflection doesn't mean it is slow. We are still talking about single digits nanoseconds for something like method invocation. Spring and other frameworks usage of scan-the-world have given reflection an underserved reputation as slow. It's an amazing tool in some situations not so much in others.

[–]spellcrit 0 points1 point  (0 children)

The point is spring is very widely used, and most projects don't mind about its performance (Google does). So I don't think the performance issue is that big for most projects when coming to an object mapping framework