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

Implementation of Singleton Pattern in the Config Class #126

Closed
wants to merge 1 commit into from

Conversation

JGeanca
Copy link

@JGeanca JGeanca commented Jul 5, 2023

This pull request implements the Singleton pattern in the Config class to ensure that only one instance of the class exists throughout the program. Currently, multiple instances of Config are created in the classes "Screen," "TodoFormatter," "StatusBar," "TodoTree," "TreeList," and "WorkspaceTree," leading to redundant objects and increased resource consumption. By using Singleton, we can eliminate object duplication, reduce memory usage, and provide a centralized access point to configuration settings, simplifying the code and improving overall efficiency.

mejora3-antes
mejora3-despues

@JGeanca JGeanca closed this Jul 5, 2023
@JGeanca JGeanca reopened this Jul 5, 2023
@kraanzu kraanzu closed this Nov 10, 2024
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.

3 participants