mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
Roberto Ierusalimschy
b14609032c
Avoid the creation of too many strings in 'package'
Both when setting a path and searching for a file ('searchpath'), this commit reduces the number of intermediate strings created in Lua. (For setting a path the change is not relevant, because this is done only twice when loading the module. Anyway, it is a nice example of how to use auxlib buffers to manipulate strings in the C API.)
Description
No description provided
Languages
C
67.4%
Lua
32%
Makefile
0.6%