mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
refactor: Remove MD5 calculation from node files listing
Remove MD5 checksum calculation from the node files API since disk image files are dynamic and change frequently. MD5 calculation was also causing significant performance overhead. Changes: - Remove md5sum field from NodeFile schema - Remove MD5 calculation from list_node_files method - Improve error handling for timestamp conversion - Simplify code by removing lambda functions Performance improvement: - Response time reduced from ~0.5-1s to ~0.017s (30-60x faster) - Especially beneficial for large files and multiple files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
fae7b2eabe
commit
e6df144ae8
2 files changed
+36
-36
No files matched your search
@@ -111,7 +111,6 @@ class NodeFile(BaseModel):
|
||||
"""
|
||||
|
||||
path: str = Field(..., description="File name")
|
||||
md5sum: str = Field(..., description="File checksum")
|
||||
size: int = Field(..., description="File size in bytes")
|
||||
created_at: str = Field(..., description="File creation time (ISO 8601)")
|
||||
modified_at: str = Field(..., description="File modification time (ISO 8601)")
|
||||
|
||||
Reference in new issue
Block a user