blade-formatter
                                
                                 blade-formatter copied to clipboard
                                
                                    blade-formatter copied to clipboard
                            
                            
                            
                        perf: formatting slows down with large files
Context (Environment)
- v1.26.6 (latest)
- all platform
Current Behavior
Formatting may take several seconds for large files with more than about 1000 lines
Expected Behavior
It should be format within a second or two even if input is large.
Possible Solution
- add performance testing
- find a bottleneck
Workaround
Split large file into components
Laravel supports anonymous components, so you can split them into components as you needed. https://laravel.com/docs/9.x/blade#anonymous-components
Large files composed of small reusable parts will be more maintainable
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days