Comments (7)
Hello,
unshared objects are still stored in the container. This was done because they may need to be closed when the container is deleted.
You can try the branch https://github.com/sarulabs/di/tree/speed_improvements
This is a complete rewrite of the project to improve performance.
On this branch only unshared objects with a close function are stored in the container.
This should resolve your issue.
If this work I will considerer merging this branch on master. I wanted to document the new features before doing so. But it has been more than a year now and I could not find the motivation.
from di.
Thank you, I think this can resolve my issue.
I think this is very great library, if this compare with another DI library in Go because is very easy to use and very simple.
Maybe this can give you motivation wkwk
from di.
Related Issues (15)
- Outside parameters for definition HOT 1
- Best way to go about passing/getting data from main package to another? HOT 1
- When using app.subcontainer is each one executed in it's own goroutine? HOT 2
- is it possible to Remove checkname from Add method ? HOT 12
- Great library design! 🚀 HOT 5
- How to use it in Gin HOT 2
- HTTPMiddleware returns http.HandlerFunc HOT 2
- Http.Request and http.responsewriter in container HOT 1
- Is there a concept of Transient HOT 2
- Feature Request: Add by Type, GetByType and GetManyByType HOT 5
- Should I define severices for each main package HOT 4
- Request Scope Isolation question
- Tags on v2 HOT 2
- Authentication middleware example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from di.