1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: reduce heap allocations done by os.real_path, os.executable, os.getwd

This commit is contained in:
Delyan Angelov
2022-08-17 17:06:38 +03:00
parent 0e62344043
commit 7585e86868
3 changed files with 34 additions and 51 deletions

View File

@ -1,5 +1,7 @@
module os
const max_path_buffer_size = max_path_len
const (
o_binary = 0 // input and output is not translated; the default on unix
o_rdonly = C.O_RDONLY // open the file read-only.