@@ -17,7 +17,7 @@ class GenerationSettings: |
| 17 | 17 | """Settings for file generation""" |
| 18 | 18 | |
| 19 | 19 | shells: List[str] = field(default_factory=list) # Empty = auto-detect |
| 20 | | - parallel: bool = False # Threading not implemented yet |
| 20 | + parallel: bool = False # Enable parallel generation |
| 21 | 21 | consolidate_files: bool = True |
| 22 | 22 | |
| 23 | 23 | |
@@ -31,15 +31,6 @@ class BehaviorSettings: |
| 31 | 31 | interactive_mode: bool = True |
| 32 | 32 | |
| 33 | 33 | |
| 34 | | -@dataclass |
| 35 | | -class PerformanceSettings: |
| 36 | | - """Settings for performance optimization""" |
| 37 | | - |
| 38 | | - cache_ttl: int = 300 # 5 minutes |
| 39 | | - lazy_load: bool = False # Not implemented yet |
| 40 | | - batch_operations: bool = True |
| 41 | | - |
| 42 | | - |
| 43 | 34 | class Settings: |
| 44 | 35 | """Manages shtick settings and preferences""" |
| 45 | 36 | |
@@ -56,7 +47,6 @@ class Settings: |
| 56 | 47 | if not self._loaded: |
| 57 | 48 | self.generation = GenerationSettings() |
| 58 | 49 | self.behavior = BehaviorSettings() |
| 59 | | - self.performance = PerformanceSettings() |
| 60 | 50 | self._settings_path = self.get_settings_path() |
| 61 | 51 | self._load() |
| 62 | 52 | Settings._loaded = True |
@@ -96,15 +86,6 @@ class Settings: |
| 96 | 86 | self.behavior.backup_on_save = beh_data.get("backup_on_save", False) |
| 97 | 87 | self.behavior.interactive_mode = beh_data.get("interactive_mode", True) |
| 98 | 88 | |
| 99 | | - # Load performance settings |
| 100 | | - if "performance" in data: |
| 101 | | - perf_data = data["performance"] |
| 102 | | - self.performance.cache_ttl = perf_data.get("cache_ttl", 300) |
| 103 | | - self.performance.lazy_load = perf_data.get("lazy_load", False) |
| 104 | | - self.performance.batch_operations = perf_data.get( |
| 105 | | - "batch_operations", True |
| 106 | | - ) |
| 107 | | - |
| 108 | 89 | logger.debug("Settings loaded successfully") |
| 109 | 90 | |
| 110 | 91 | except Exception as e: |
@@ -128,11 +109,6 @@ class Settings: |
| 128 | 109 | "backup_on_save": self.behavior.backup_on_save, |
| 129 | 110 | "interactive_mode": self.behavior.interactive_mode, |
| 130 | 111 | }, |
| 131 | | - "performance": { |
| 132 | | - "cache_ttl": self.performance.cache_ttl, |
| 133 | | - "lazy_load": self.performance.lazy_load, |
| 134 | | - "batch_operations": self.performance.batch_operations, |
| 135 | | - }, |
| 136 | 112 | } |
| 137 | 113 | |
| 138 | 114 | # Write TOML file |
@@ -164,7 +140,7 @@ class Settings: |
| 164 | 140 | [generation] |
| 165 | 141 | # Shells to generate files for. Empty list = auto-detect based on current shell |
| 166 | 142 | shells = [] |
| 167 | | -# Enable parallel generation (not implemented yet) |
| 143 | +# Enable parallel generation for faster processing with many shells |
| 168 | 144 | parallel = false |
| 169 | 145 | # Consolidate all items into single files per shell |
| 170 | 146 | consolidate_files = true |
@@ -178,14 +154,6 @@ check_conflicts = true |
| 178 | 154 | backup_on_save = false |
| 179 | 155 | # Enable interactive prompts |
| 180 | 156 | interactive_mode = true |
| 181 | | - |
| 182 | | -[performance] |
| 183 | | -# Cache time-to-live in seconds |
| 184 | | -cache_ttl = 300 |
| 185 | | -# Enable lazy loading (not implemented yet) |
| 186 | | -lazy_load = false |
| 187 | | -# Enable batch operations for better performance |
| 188 | | -batch_operations = true |
| 189 | 157 | """ |
| 190 | 158 | |
| 191 | 159 | with open(self._settings_path, "w") as f: |