Skip to content

When using stdout output, let's avoid any temporary files #3369

@d0vgan

Description

@d0vgan

I have a general suggestion to ctags regarding the behavior that have probably been being here since the origin of ctags.
When ctags uses stdout output (when -f - command line option is provided), it anyway creates a temporary file during the tags generation.
To me, such behavior ruins the whole idea of the stdout output. Personally I was using -f - with the only purpose to avoid any temporary file creation. My expectations regarding -f - were the following:

  1. ctags is generating its output tags in a memory
  2. ctags does not use any intermediate temporary file during this
  3. ctags outputs the generated tags from the memory to stdout.

However, in reality ctags generates a temporary tags file that seems absolutely useless in this scenario since the output goes to stdout.
In todays world of SSD disks (with their limited write cycles), I'd like to avoid temporary files as much as possible.
Please consider making -f - to not use any temporary file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions