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

internal: construct global license DB lazily #38

Merged
merged 1 commit into from
May 24, 2018
Merged

internal: construct global license DB lazily #38

merged 1 commit into from
May 24, 2018

Conversation

dsymonds
Copy link
Contributor

Constructing this DB takes about 3s. This is a huge hit when this
package is merely linked in to a binary (e.g. a test) and not used.

Signed-off-by: David Symonds [email protected]

Constructing this DB takes about 3s. This is a huge hit when this
package is merely linked in to a binary (e.g. a test) and not used.

Signed-off-by: David Symonds <[email protected]>
@vmarkovtsev vmarkovtsev merged commit 34b911e into src-d:master May 24, 2018
@vmarkovtsev
Copy link
Collaborator

Thanks! So this is how to implement the Singleton pattern in Go.

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

Successfully merging this pull request may close these issues.

2 participants