Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Kart-Public Kart-Public
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • KartKrew
  • Kart-PublicKart-Public
  • Merge requests
  • !195

Open
Created Aug 16, 2020 by James R.@jamesMaintainer1 of 3 tasks completed1/3 tasks
  • Report abuse
Report abuse

WIP: Multithread some usage of findfile

  • Overview 0
  • Commits 14
  • Changes 16

On a slow disk, descending the directories can be, well, slow. It has also been my suspicion in the past that some timeouts were due to addons loading config files (the exec command uses findfile).

What needs to done:

  • Multithread the exec command.
  • Create a queue for locating a wad for addfile as well as startup files.
  • Create a queue for locating files when connecting to servers.

Although the exec command could be multithreaded in its entirety, wad loading is much more complex. So a filename can be placed in the queue, and another thread handles locating the file. Once the file has been located, its path may be updated in the queue. The the main thread will check the queue every tic and do what it needs to.

Edited Aug 27, 2020 by James R.
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: findfile-with-threads