Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

perf: Use precomputed keys with injector for performance reasons. #1100

Merged
merged 1 commit into from
Jun 4, 2014

Conversation

mvuksano
Copy link
Contributor

@mvuksano mvuksano commented Jun 3, 2014

Closes #1081

@mvuksano mvuksano added cla: yes and removed cla: no labels Jun 3, 2014
@jbdeboer
Copy link
Contributor

jbdeboer commented Jun 4, 2014

Awesome!

@mhevery mhevery merged commit 0835db7 into dart-archive:master Jun 4, 2014
import 'package:di/di.dart';
import 'module_internal.dart';

Key EXCEPTION_HANDLER_KEY = new Key(ExceptionHandler);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding a note on why we use static keys in those files ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

For performance, use Injector.getByKey instead of Injector.get
4 participants