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

Enhance Codec Implementation to Support Singleton Pattern #196

Closed
jchrys opened this issue Jan 14, 2024 · 0 comments · Fixed by #197
Closed

Enhance Codec Implementation to Support Singleton Pattern #196

jchrys opened this issue Jan 14, 2024 · 0 comments · Fixed by #197
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jchrys
Copy link
Collaborator

jchrys commented Jan 14, 2024

Background

In the current state of the project, the Codec implementation is not designed as a singleton, which means that each time a new instance is required, a new object is created. This approach may lead to increased memory usage and unnecessary object creation overhead, especially in situations where a single instance of the Codec is sufficient for the entire application.

Proposal

To address this issue, it is recommended to modify the Codec implementation to follow the singleton pattern. This would ensure that only one instance of the Codec exists throughout the application's lifecycle, providing benefits such as reduced memory consumption and improved performance.

@jchrys jchrys added the enhancement New feature or request label Jan 14, 2024
@jchrys jchrys added this to the 1.0.7/0.9.8 milestone Jan 14, 2024
@jchrys jchrys self-assigned this Jan 14, 2024
jchrys added a commit that referenced this issue Jan 14, 2024
Motivation:
A single instance of the Codec is sufficient for the entire application.

Modification:
Implement Singleton pattern for codecs.

Result:
Reduced memory consumption and improved performance.
resolves #196
jchrys added a commit that referenced this issue Jan 15, 2024
Motivation:
A single instance of the Codec is sufficient for the entire application.

Modification: Implement Singleton pattern for codecs.

Result:
Reduced memory consumption and improved performance.
resolves #196
jchrys added a commit that referenced this issue Jan 15, 2024
Singleton Codecs

Motivation:
A single instance of the Codec is sufficient for the entire application.

Modification:
Implement Singleton pattern for codecs.

Result:
Reduced memory consumption and improved performance.
resolves #196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant