diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-08-20 11:11:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-20 11:11:24 -0400 |
| commit | a97af306c4e9c9a6fa7c886c0ffe3079822c5203 (patch) | |
| tree | f5e2b50a767e93618d0d8fdddb8a964c90633c8a /scratch/nvim_ffi.lua | |
| parent | d6d28dbe324de9826a579155076873888169ba0f (diff) | |
feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs
* short circuit to using bad finder if you pass writer.
Diffstat (limited to 'scratch/nvim_ffi.lua')
| -rw-r--r-- | scratch/nvim_ffi.lua | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/scratch/nvim_ffi.lua b/scratch/nvim_ffi.lua deleted file mode 100644 index 6fc01c1..0000000 --- a/scratch/nvim_ffi.lua +++ /dev/null @@ -1,15 +0,0 @@ -local ffi = require("ffi") --- ffi.load("/home/tj/build/neovim/build/include/eval/funcs.h.generated.h") - -ffi.cdef [[ - typedef unsigned char char_u; - char_u *shorten_dir(char_u *str); -]] - -local text = "scratch/file.lua" -local c_str = ffi.new("char[?]", #text) -ffi.copy(c_str, text) - -print(vim.inspect(ffi.string(ffi.C.shorten_dir(c_str)))) - - |
