Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test performance difference between registering entity class and entity metadata instance. #25

Open
matoushybl opened this issue Jun 5, 2014 · 1 comment

Comments

@matoushybl
Copy link
Collaborator

We should test performance difference between registering entity classes using these possibilities:

  • TorchService.with(this).register(Model.class);
  • TorchService.with(this).register(Model$.create());

This should show which method is the best for registering and update wiki with the best one.

@TadeasKriz
Copy link
Member

I believe the difference will be marginal, so it might be better to measure it and then on the wiki we should recommend the option better for each use. It might be that in application with more than 10 entities it would be a large difference, so we would recommend the Model$.create() approach and for less entities users might like to use the Model.class because it's more straightforward and better for refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants