Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Spot Spot
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Spot
  • SpotSpot
  • Issues
  • #98
Closed
Open
Created Jul 16, 2015 by Alexandre Duret-Lutz@adlOwner

speed up exec() in ltlcross and ltldo

exec_with_timeout() could be speed up in at least two ways.

  1. Try execv("/bin/sh",...) first and only resort to execvp("sh",...) if the first fails. This avoids the PATH lookup.

The first try should probably honor the SHELL variable if it is defined.

  1. If the command is simple enough so that we can split it by ourselves (a single command with redirection, maybe single-quoted strings and double-quoted strings that do not contain dollars, backaslashs or backquotes, no variable assignment), then we can run the command directly with execvp without starting a shell. GNU make has some code that does exactly that.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking