Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • C coreutils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • coreutils
  • Merge requests
  • !196

Bytes bugfix + major speed improvement for large files

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Jeremy Soller requested to merge tdbgamer:master into master Mar 20, 2018
  • Overview 1
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: tdbgamer

Most tail implementations read files backwards rather than keeping a queue and reading the file top to bottom. This is a major speed improvement for large files. Reading an old syslog on my machine went from taking 0.15 seconds to 0.001 seconds.

This also includes a bug fix for the -c flag not working properly. Basically the default for lines with parseargs caused it to never check the -c flag and it would panic if you only passed -c without the lines flag.

To do the optimization I imported a crate I made out of my tail implementation. It includes inotify and getopts as dependencies for the binary, but I can break the lib out into a separate crate if that's an issue for ya'll.

Edited Mar 07, 2023 by Ribbon
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: tdbgamer:master