Commit Graph

10 Commits

Author SHA1 Message Date
Umut CAN
827f7260ad This commit focuses on optimizing the utility modules in the codebase for better performance and maintainability. Key improvements include: - More efficient HTML processing with combined regex operations and optimized tag handling - Enhanced deep copy functionality with better type handling and optimized recursion - Refactored web search with improved error handling and modular helper functions The changes maintain all existing functionality while improving code quality, performance, and maintainability. Documentation and type hints have been enhanced throughout.
Optimize utils modules for better performance and maintainability

- Improve HTML cleanup and minification:
  - Combine regex operations for better performance
  - Add better error handling for HTML processing
  - Optimize tag removal and attribute filtering

- Enhance deep copy functionality:
  - Add special case handling for primitive types
  - Improve type checking and error handling
  - Optimize recursive copying for collections

- Refactor web search functionality:
  - Add input validation and error handling
  - Split search logic into separate helper functions
  - Improve proxy handling and configuration
  - Add better timeout and error management
  - Optimize URL filtering and processing

Technical improvements:
- Better type hints and documentation
- More efficient data structures
- Improved error handling and validation
- Reduced code duplication
- Better separation of concerns

No breaking changes - all existing functionality maintained
2024-10-28 22:40:32 +03:00
Marco Vinciguerra
47645d92ce removed unused files 2024-10-12 09:41:02 +02:00
Marco Vinciguerra
d0969feb7c removed unused imports and comments + removed dead code 2024-09-23 09:25:13 +02:00
Marco Vinciguerra
438b8127db refctoring of the code 2024-09-15 11:20:08 +02:00
Marco Vinciguerra
dcef172e03 Update copy.py
Some checks failed
CodeQL / Analyze (python) (push) Has been cancelled
/ build (push) Has been cancelled
Release / Build (push) Has been cancelled
Release / Release (push) Has been cancelled
2024-09-14 10:43:47 +02:00
smith peng
7e3f66e180 fix:fix boto3 client copy 2024-09-14 11:15:31 +08:00
smith peng
553527a269 fix: fix pydantic object copy 2024-09-01 16:42:48 +08:00
smith peng
71b22d4880 feat: add deepcopy error 2024-08-31 17:55:14 +08:00
smith peng
36818b1fb3 feat:adjust uncopiable obj raise error and remove memo 2024-08-31 17:39:33 +08:00
smith peng
4f4d091b82 feat:add deepcopy tool 2024-08-31 11:30:20 +08:00