Commit Graph
3 Commits
Author SHA1 Message Date
James Lawrence 206a602e77 use terminal environment variable if present 2021-09-04 15:29:58 -04:00
James Lawrence 3a59228eaa remove old parse entry version 2021-08-31 06:33:04 -04:00
James Lawrence 57826c064d improve parsing of desktop entries.
- speed up parsing by not creating nearly as many strings.
- fix basic whitespace handling. fixes #4

goos: linux
goarch: amd64
pkg: github.com/nwg-piotr/nwg-drawer
cpu: AMD Ryzen 7 1800X Eight-Core Processor
BenchmarkDesktopEntryParserOld-16    	   10000	    146094 ns/op
BenchmarkDesktopEntryParser-16       	   26097	     43303 ns/op
PASS
ok  	github.com/nwg-piotr/nwg-drawer	3.090s
2021-08-31 06:32:40 -04:00