Skip to content

Performance Overhead #5

@osokindm

Description

@osokindm

Issue: Performance Overhead in Logging Library

Problem: The current implementation creates a new File object and calls appendText for each log entry. This results in significant performance overhead due to:

  1. Frequent File Operations: Each call to appendText involves opening and closing files repeatedly.
  2. Repeated Date-Time Retrieval: Calling LocalDateTime.now() and formatting it for each log entry.

I just wanted to understand why have you done it this way. It seems to be better to keep the log file open. May be there were some assumptions. Please let me know if I am wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions