liamg / darktile

:waning_crescent_moon: Darktile is a GPU rendered terminal emulator designed for tiling window managers.
MIT License
3.04k stars 112 forks source link

Added options for setting GOMAXPROCS and profiling output. #289

Closed bsipos closed 3 years ago

bsipos commented 4 years ago

Pull Request Template

Description

Hello,

I have found aminal useful and hackable (since it is written in Go). However, I found the latency a bit too high when used Midnight Commander inside the terminal. So I have added a command line flag for optionally running the pprof profiler. This was not that useful as most time is spent in cgo calls, however, the option might be useful for future development. Then I have added an option to set runtime.GOMAXPROCS(), and I have found than -threads 4 makes aminal responsive enough to be used with mc. I am aware that this is just ducktape and not a solution, but it certainly makes the terminal more usable, hence please merge it if you like the idea.

Best, Botond

Fixes # (issue)

Type of change

Please delete options that are not relevant.

Test Configuration:

Checklist: